Macro stakker::ret_shutdown

source ·
macro_rules! ret_shutdown {
    ($core:expr) => { ... };
}
Expand description

Create a Ret instance which shuts down the event loop

ret_shutdown!(core);

This can be used as the notify handler on an actor to shut down the event loop once that actor terminates. The reason for the actor’s failure is passed through, and can be recovered after loop termination using Core::shutdown_reason. See also Ret::new and Core::shutdown.