Currently, there is just one configuration option for tasks: keep. It has the following values
last (default): Cancel a currently-running instance when running another
first: Immediately cancel a new instance of a task if there's another one running
all: No tasks are cancelled as a side effect of running another task
I want to expand this API to handle keeping more than just one instance under last and first. Something like this:
Currently, there is just one configuration option for tasks:
keep
. It has the following valueslast
(default): Cancel a currently-running instance when running anotherfirst
: Immediately cancel a new instance of a task if there's another one runningall
: No tasks are cancelled as a side effect of running another taskI want to expand this API to handle keeping more than just one instance under
last
andfirst
. Something like this:The idea is to support something akin to
maxConcurrency
inember-concurrency
http://ember-concurrency.com/api/TaskProperty.html#maxConcurrency