Skip to content

Task Model

Micha Reiser edited this page Sep 23, 2016 · 4 revisions

Task Model

Task Model

ITask

Represents a scheduled task. The state of the task may either be queued, executing or resolved/completed. The task implements the Promise api for result retrieval and error handling.

Errors are silently ignored if no onrejected handler is registered for a task.

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. Each serialized function can be identified by a unique id. The unique id can be used to retrieve the definition of the function.

IFunctionId

Unique id assigned to each serialized function. Allows retrieval of the function definition.

Clone this wiki locally