Crate waker

source ·
Expand description

A standard implementation of a Waker + Blocker pair – a basic wait event.

This crate directly 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 until the associated waker is woken.

Functions

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