Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
Right now the AsyncScheduler requires that we call End. This is to distinguish between a scheduler running out of tasks because it hit an idle period (in which case it shouldn't mark itself finished) and a scheduler running out of tasks because it is truly done (in which case it should mark itself finished).
It should be possible to require that scheduler tasks only be added by existing tasks. When creating a scheduler one would supply an "initial task" to bootstrap the first set of tasks. In this case we could get rid of the End method because the only time a scheduler will run out of tasks is when it is finished.
Attachments
Issue Links
- links to