|0.1.1||Feb 2, 2023|
|0.1.0||Feb 1, 2023|
#636 in WebAssembly
167 downloads per month
Used in 2 crates
A timer toolkit that is generic over the underlying timer implementation.
This crate does not implement any platform-specific timer but uses a generic abstraction over the timer implementation to provide a set of timer related tools:
This crate currently does not provide any feature beyond the ones that is already provided by
tokio, so this crate is completely not needed if you are already using
tokio in your
The core of this crate is the
Delay trait, and it is implemented for the following types by
enabling the corresponding features:
wasm32-unknown-unknown target depends on the chosen timer implementation.
fluvio-wasm-timer are the only two wasm timer implementations that are
The usage remains mostly similar to those provided in
tokio::time with one additional generic
D which is the type of the underlying timer implementation. Please refer to the
documentation of the corresponding types for more details.