Function interrupt_support::register_interrupt

source ·
pub fn register_interrupt(
    interrupt: Weak<dyn AsRef<SqlInterruptHandle> + Send + Sync>
)
Expand description

Register a ShutdownInterrupt implementation

Call this function to ensure that the SqlInterruptHandle::interrupt() method will be called at shutdown.