-
Notifications
You must be signed in to change notification settings - Fork 3
Task Model
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.
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.
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
is a unique id identifying a serialized function.