Module event

Source
Expand description

An event that can be signaled and waited on by multiple consumers.

Structsยง

Dropped
Error returned from an EventWait when the Event is dropped.
Event
An Event is a clonable object that can be signaled once. Calls to .wait() produce a future, EventWait, that can wait on that signal. Once the Event has been signaled, all futures will complete immediately.
EventWait
Future implementation for Event::wait. This future only completes when the event is signaled. If all signalers are dropped, EventWait continues to return Poll::Pending.
EventWaitResult
Future implementation for Event::wait_or_dropped.