Methods
-
abort()
-
Abort any pending tasks.
-
<async> postTask(fn [, taskOpts] [, opts])
-
Add a task to the sub-scheduler.
Parameters:
Name Type Argument Default Description fnTask | function taskOptsObject <optional>
{} optsObject <optional>
{} Properties
Name Type Argument Default Description unshiftBoolean <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 fnsArray taskOptsObject <optional>
{} optsObject <optional>
{} Properties
Name Type Argument Default Description unshiftBoolean <optional>
false Returns:
Resolves when all tasks in
fnshave finished.- Type
- Promise