lib.rs
gloo-timers
use gloo_timers::callback::Timeout; let timeout = Timeout::new(1_000, move || {// Do something after the one second timeout is up!}); // Since we don't plan on cancelling the timeout, call `forget`. timeout.forget(); Timeouts as Futures. With the futures feature enabled, a future module containing futures-based timers is exposed.
embassy-time
55,747 downloads per month Used in 118 crates (98 directly). MIT/Apache. 145KB 2K SLoC embassy-time. Timekeeping, delays and timeouts. Timekeeping is done with elapsed time since system boot. Time is represented in ticks, where the tick rate is defined either by the driver (in the case of a fixed-rate tick) or chosen by the user with a tick rate feature. The chosen tick rate applies to ...
settimeout
See also: gloo-timers, futures-timer, wasm-bindgen-futures, pinky-swear, cancel-safe-futures, pasts, async-ffi, spin_on, inspect-timeout, handle, must_future Lib.rs is an unofficial list of Rust/Cargo crates, created by kornelski.It contains data from multiple sources, including heuristics, and manually curated data.Content of this page is not necessarily endorsed by the authors of the crate.