⏱️ 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.12.1 |
chrono | 0.4.38 |
time | 0.3.36 |
log | 0.4.21 |
tokio | 1.37.0 |
How to use this library
In your Cargo.toml
add:
[dependencies]
tasklet = "0.2.1"
Example
Find more examples in the examples folder.
use ;
use SimpleLogger;
use ;
/// A simple example of a task with two steps,
/// that might work or fail sometimes.
async
Author
Stavros Grigoriou (stav121)