schedule-rs
schedule-rs copied to clipboard
Define an execution model
Currently jobs are run manually (with a helper method to run all currently pending jobs). We should define an execution model.
-
Does it make sense to have more than one execution model (sync vs async)?
-
How does the API look?
my_agenda.start()
-
How does the agenda, itself, execute (in a thread or coordinated with an event loop)?
-
How does each job execute (threadpool) ?
- https://github.com/frewsxcv/rust-threadpool
- http://alexcrichton.com/futures-rs/futures_cpupool/
Are Jobs re-entrant?