Expand description
Utilities for structured and composable asynchronous control flow.
asyncron
provides lightweight primitives for managing asynchronous
tasks and behaviors in Rust. It includes scheduling mechanisms, periodic
execution, and task combinators for adding time-based logic to futures.
The crate is designed to work independently of any specific async runtime, making it flexible and adaptable to various execution environments.
Features include:
- A
Scheduler
for prioritizing and tracking async tasks - A
Task
future that encapsulates asynchronous work, supports dependencies (including detached ones), and configurable polling strategies - A
PeriodicTask
for running recurring futures with control over timing and cancellation - Time-based wrappers like
Delay
andTimeout
for augmenting futures
All components are modular and designed for composability, making it easier to build expressive and maintainable async systems.
Re-exports§
pub use priority::Priority;
pub use scheduler::Id;
pub use scheduler::Scheduler;
pub use scheduler::SchedulerResultError;
pub use task::Task;
Modules§
- periodic
- Periodic task execution and cancellation utilities.
- priority
- scheduler
- Provides the
Scheduler
for managing and executing asynchronous tasks and futures. - task
- Defines the
Task
struct and related functionality. - task_
ext - Utilities for enhancing asynchronous tasks with additional behaviors.
- timing
- Timing utilities for asynchronous workflows.