Eio_utils.Zzz
A set of timers.
module Key : sig ... end
A handle to a registered timer.
val create : unit -> t
create ()
is a fresh empty queue.
add t time item
adds a new event, due at time
, and returns its ID.
If item
is a Fiber
, you must use Eio.Private.Fiber_context.set_cancel_fn
on it before calling pop
. Your cancel function should call remove
(in addition to resuming it).