You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Micha Reiser edited this page Dec 13, 2016
·
4 revisions
Task Model
ITask
The ITask represents a parallel job that runs on the thread pool. The state of the task is either queued, executing or resolved/completed. The task implements the Promise API for result retrieval and error handling.
The implementation silently ignores errors if no onrejected handler is registered. This behavior is the default for Promises. However, the browser might report the error in the console.
ITaskDefinition
Serializable definition of the operations to be performed by this task. The definition consists of a unique id — assigned by the thread pool — and the main function to execute in serialized form.
ISerializedFunctionCall
Serialized representation of a function call. A function call consists of the function to invoke and the parameters to pass to the function. A unique id identifies each serialized function and can be used to request the definition of the function from the master.
IFunctionId
IFunctionId is a unique id identifying a serialized function.