Module async_utils::event

source ·
Expand description

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

Structs§

  • Error returned from an EventWait when the Event is dropped.
  • 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.
  • 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.
  • Future implementation for Event::wait_or_dropped.