Work Manager
work-manager is a Rust library designed to simplify the management of asynchronous tasks. It allows you to define Jobs, chain them into Sequences, and schedule them using a WorkManager.
Features
- Job Abstraction: Implement the
Jobtrait to define units of work. - Job Sequencing: Chain jobs together using
.then(), passing results from one to the next. - Task Management: Use
WorkManagerto enqueue one-off or periodic jobs. - Cancellation: Easily cancel jobs by name.
Installation
Add this to your Cargo.toml:
[]
= "0.1.0"
= { = "1", = ["rt", "time", "macros"] }
Usage
use ;
use Duration;
async
License
This project is licensed under the MIT License.