Skip to main content

Module scheduler

Module scheduler 

Source
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§

TimerKind
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 heap without bound and drag a long-running Node into OOM.