Crate waker_generic

source ·
Expand description

A standalone, generic implementation of a Waker + Blocker pair – a basic wait event.

By standalone, we mean that this crate does not depend on tasking infrastructure (e.g., the task crate) directly, meaning it is usable in the task crate. This works by accepts generic actions (closures) for waking the Waker and blocking the Blocker.

Structs

  • A blocker that blocks in a loop until the associated waker is woken.

Functions

  • Creates a new waker and blocker pair that are associated with each other.