//! Timer primitives for async code.
//!
//! The main entry point is [`timer::Timer`], which lets you schedule waits with
//! millisecond-level control and efficiently manage many concurrent timers.
//! Internally, timers are backed by a dedicated thread and a priority queue of
//! expirations.
//!
//! On `wasm32` targets, a separate implementation based on JavaScript
//! `setTimeout` is provided via the `timer_wasm32` module.