ember-cli-new-version
ember-cli-new-version copied to clipboard
yield inside ember-concurrency finally block
On this line you're yielding within a finally
. This is not really a good idea per https://github.com/machty/ember-concurrency/issues/185
Any idea what an alternative might be?
I think you might be able to restructure the tasks so there is a main task which just does a while
loop and calls a subtask. Then the sleep can happen in the primary task (after the subtask completes) and the finally / rescue scenario can happen in the child task.
That's one idea, there are probably at least a few other ways that would work.
@bgentry think you could submit a PR for this?
yeah, I should be able to do that soon