Create a Task object to execute javascript code in the background on any browser, without script timeout messages.
The following methods are used to schedule and execute work for a task:
Task.map | Updates each element of the array provided with the result of the function. Used to schedule work for the Task.execute function. |
Task.reduce | Update a result with the result of the supplied function called on each value in the array parameter. Used to schedule work for the Task.execute function. |
Task.execute | Begins execution of functions previously mapped to an array with the Task.map and Task.reduce methods. |
Task.reset | Clears all data and resets the task. |