Pause/Resume support
I felt great when found out this awesome lib, which fit my needs when there's support for nested/grouping. Thank you very much.
But when being hooked into it, I think that it lacks the ability to pause/resume the task/group (on purpose).
I have been able to pause/resume the taskgroup (the running task still run), by:
- Add a new status:
paused - Add 2 methods:
-
pause(): Changethis.state.statustopaused -
resume(): Changethis.state.statustofalse& run the queue again (this.run())
-
- Update some status checks
Not sure if there's any official guide for pause/resume, or someone already working on it. If my changes are going to the right direction, I can create a PR for it so you can take a look :) I guess there must be other places need to be updated accordingly :)
Older releases had the ability to pause and resume, however I pulled it. Perhaps the reasoning is in the commit history, changelog, or issue tracker somewhere, as I cannot remember why. Perhaps it was just too difficult at the time.