pub type Signal = Shared<Receiver<i32>>;
Expand description
A one-time broadcast that can be awaited by many tasks. It is often used for coordinating shutdown across many tasks.
To minimize the overhead of tracking outstanding signals (which only return once),
it is recommended to wait on a reference to it (i.e. &mut signal
) instead of
cloning it multiple times in a given task (i.e. in each iteration of a loop).
Aliased Typeยง
pub struct Signal { /* private fields */ }