Function trigger

Source
pub fn trigger() -> (Trigger, Listener)
Expand description

re-exports triggered crate as well as two wrappers SingleTrigger and ReqRespTrigger Returns a Trigger and Listener pair bound to each other.

The Listener is used to wait for the trigger to fire. It can be waited on both sync and async.