this post was submitted on 18 Sep 2023
7 points (73.3% liked)
Rust Programming
8150 readers
36 users here now
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Can you use async in your project?
If Yes, you can spawn a task that will listen on a channel. If you need to run them in parallel probably you can find a mpmc channel.
If you need for them to run at a specific time, spawn task ,tokio::time::sleep , run job, loop.
Don't know any crate just for this.
How would you do it every 30 minutes? Every 5 hours? Once a day?