Methods
-
abort()
-
Abort any pending tasks.
-
<async> postTask(fn [, taskOpts] [, opts])
-
Add a task to the sub-scheduler.
Parameters:
Name Type Argument Default Description fn
Task | function taskOpts
Object <optional>
{} opts
Object <optional>
{} Properties
Name Type Argument Default Description unshift
Boolean <optional>
false Returns:
Resolves when the task has finished.
- Type
- Promise
-
postTasks(fns [, taskOpts] [, opts])
-
Add an array of tasks to the sub-scheduler.
Parameters:
Name Type Argument Default Description fns
Array taskOpts
Object <optional>
{} opts
Object <optional>
{} Properties
Name Type Argument Default Description unshift
Boolean <optional>
false Returns:
Resolves when all tasks in
fns
have finished.- Type
- Promise