Crate interval_task
source ·Expand description
§interval-task
This crate provides a runner to simulate what setInterval does in JS which is repeatedly executing a task every given Duration.
But since in rust we can’t have that kind of flexibility like js, the runner here provides much more usage except for just pass in the function and delay. Also provide a channel which wraps up runner
To what point is thread::sleep accurate?
Purely thread with no async support.
Modules§
- channel
- Runner