Fastimer implements runtime-agnostic driver for async timers and scheduled tasks.
Fastimer provides SimpleAction
and ArbitraryDelayAction
that can be scheduled as a repeating and cancellable action.
Timeout
is a future combinator that completes when the inner future completes or when the timeout expires.
TimeDriver
is a runtime-agnostic time driver for creating delay futures. To use the time driver, you need to enable the driver feature flag.
Add the dependency to your Cargo.toml
via:
cargo add fastimer
Read the online documents at https://docs.rs/fastimer.
This project is licensed under Apache License, Version 2.0.