async_utils

Module 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.