Expand description
Timer utilities for actors.
This module provides timer functionality for scheduling messages:
TimerHandle: A handle to cancel a scheduled timerContext::schedule_once: Schedule a message to be sent after a delayContext::schedule_repeat: Schedule a message to be sent repeatedly
§Platform Differences
- Native: Uses a centralized scheduler with a BinaryHeap min-heap
- WASM: Uses
setTimeoutandsetIntervalviaweb-sys
Modules§
Structs§
- Timer
Handle - Handle to a scheduled timer.