minus-squarevaalla@discuss.tchncs.detoRust Programming@lemmy.ml•How to run background jobs?linkfedilinkarrow-up1·1 year agoCan 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. linkfedilink
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.