2cf75febdc85261a776b2416ea91972aee0b61d3
Adds a BinaryHeap of timer entries on SchedulerState. sleep() inserts an entry and parks; schedule_loop pops due entries each iteration and unparks them. When the run queue is empty but timers are pending, the OS thread sleeps until the soonest deadline. Single-threaded only; thread::sleep is fine because no other thread can wake us. The IO thread coming next will need a Condvar or pipe wakeup to break this OS-sleep early.
Description
SMARM - Smarm, Marks Actor Runtime Machinery
Languages
Rust
95.6%
Python
4.4%