⏱️ An asynchronous task scheduling library written in Rust
About
tasklet
is a task scheduling library written in Rust. It is built over tokio
runtime and utilizes green threads
in order to run tasks asynchronously.
Dependencies
library | version |
---|---|
cron | 0.15.0 |
chrono | 0.4.39 |
time | 0.3.37 |
log | 0.4.25 |
tokio | 1.43.0 |
futures | 0.3.31 |
How to use this library
In your Cargo.toml
add:
[dependencies]
tasklet = "0.2.7"
Example
Find more examples in the examples folder.
use info;
use SimpleLogger;
use Error;
use Success;
use ;
/// A simple example of a task with two steps,
/// that might work or fail sometimes.
async
Author
Stavros Grigoriou (stav121)