Creates a new instance that communicates with the given worker
the IWorkerThreadSlaveCommunicationChannel to the slave
the IWorkerThreadSlaveCommunicationChannel to the slave
Unique id of this worker thread
The current state of the worker thread
Assigns a unique id to the worker Can only be invoked once. Must be invoked before any task is scheduled.
Executes the given task on the worker. Requires that the worker thread has been initialized
the task to execute
the callback to invoke when the task has completed (successful or not)
Stops the worker as soon as it receives the message. Does not wait to complete the task.
Generated using TypeDoc
Worker Thread Endpoint in the UI-Thread. Implements the communication with the {@link IWorkerSlave} in the worker thread.