ember-concurrency
ember-concurrency copied to clipboard
Cancelling task does not update group's isRunning property
Version: 0.8.7 Ember version: 1.13.11 Steps to reproduce:
- Create a long-running task and assign it to group
- Perform task
- Cancel task using task's
cancelAll
method orcancel-all
helper
Expected result: Group's isRunning
property is false
after cancellation
Actual result: Group's isRunning
property is true
I tried to debug a little and found out that if I replace line 30 of -scheduler.js with Ember.run.next(null, flushTaskCounts, seen);
, cancellation works as intended. However, I'm not sure if this fix is correct and wouldn't break something else.