Skip to main content

Module shutdown

Module shutdown 

Source
Expand description

Cooperative cancellation (PRD §26).

Small enough not to justify a dependency: a flag plus a notifier. The important property is that cancel() is observable both by a poll (is_cancelled) on the hot write path and by an await (cancelled().await) inside a select!.

Structs§

Cancel