Skip to main content

Module sync

Module sync 

Source
Expand description

Async signaling primitives.

Runtime-agnostic: built on AtomicWaker, usable from any executor.

Structs§

Event
One-shot event flag supporting a single waiter.
Signal
One-shot signal carrying a value to a single waiter.

Functions§

with_timeout
Run fut until it completes or timeout elapses first.
yield_now
Hand control back to the executor once, so another task can make progress.