Expand description
Scheduler - sorted timer heap.
ships the real BinaryHeap-backed scheduler that drives
Interval / After / Sleep / TimerKind::Completion syscall
ops. has_matured(now_ns) reports whether any timer has matured
by the supplied time; poll_matured(now_ns) drains every
matured timer in age order.
Structs§
- Scheduler
- Sorted timer heap.
Enums§
- Timer
Kind - What a matured timer signals covers Sleep / Interval / After / Completion.
Constants§
- DEFAULT_
TIMER_ HEAP_ CAP - Default cap on the timer heap. A runaway Interval / After /
Pulse / Sleep call site would otherwise grow
heapwithout bound and drag a long-running Node into OOM.