async-foundation 0.2.1

Foundational async primitives for Rust - timers, networking, and common utilities
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! 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.

pub mod timer;
pub mod timer_future;
mod timer_future_state;
mod timer_state;
#[cfg(target_arch = "wasm32")]
pub mod timer_wasm32;