async_foundation/timer/mod.rs
1//! Timer primitives for async code.
2//!
3//! The main entry point is [`timer::Timer`], which lets you schedule waits with
4//! millisecond-level control and efficiently manage many concurrent timers.
5//! Internally, timers are backed by a dedicated thread and a priority queue of
6//! expirations.
7//!
8//! On `wasm32` targets, a separate implementation based on JavaScript
9//! `setTimeout` is provided via the `timer_wasm32` module.
10
11pub mod timer;
12pub mod timer_future;
13mod timer_future_state;
14mod timer_state;
15#[cfg(target_arch = "wasm32")]
16pub mod timer_wasm32;