Skip to main content

interrupt

Function interrupt 

Source
pub fn interrupt()
Expand description

Ask sessions that are starting up in this process to give up as soon as they safely can, e.g. when the user presses Ctrl-C.

Sessions that are starting up stop with ClusterError::Interrupted, stopping any server they started, and releasing anything they claimed. Sessions that have already started are not affected.

Signals are process-wide, so this is too: once called, every attempt to start a session in this process fails. It is safe to call from a signal handler.