number of workers to spawn
duration in ms to wait for a cancel to complete before killing the task and worker.
duration in ms to wait for a cancel to complete before killing the task and worker.
number of workers to spawn
Request all tasks in this group to cancel. Kill the tasks after the cancelTimeout if they cannot be gracefully stopped.
Called to initially fill the worker pool and called when a worker dies.
Kills the task's worker and signals that the task has been canceled.
Terminate the worker and start a new one to replace it.
worker to terminate and remove from pool
if true, fill the worker pool
Remove the task from the queue and mark the owning worker as free.
Cancel tasks in this group and queue the new task
Start running queued tasks if there are any available workers.
Generated using TypeDoc