Fastimer implements runtime-agnostic driver for async timers and scheduled tasks.
Fastimer provides multiple abstractions that can be scheduled as a repeating and cancellable action:
SimpleAction
: A simple action that can be scheduled with fixed delay or at fixed rate.ArbitraryDelayAction
: An action that can be scheduled with arbitrary delay.NotifyAction
: An action that can be scheduled by notifications.
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.