Methods
-
add(weight, task)
-
Adds task to queue.
Parameters:
Name Type Description weight
number Task weight.
task
function Task.
- Source:
Adds task to queue.
Name | Type | Description |
---|---|---|
weight |
number | Task weight. |
task |
function | Task. |