Skip to main content

Module shared_timer

Module shared_timer 

Source
Expand description

Process-wide deadlines. Callbacks only check state or enqueue work: blocking I/O and cache destruction belong on the caller’s existing work pool.

Structs§

Timer
Cancels a pending deadline on drop, removing its callback immediately. A callback already being dispatched must also fence its work with the root’s lifecycle (usually a weak owner and the executor’s cancellation token).