WorkerTask
Source: thread.js:380
Worker task.
Constructor
new WorkerTask(message: object, info: object): WorkerTaskParameters
message(object) — The data to pass to the worker.info(object) — Information object about the input data.
Instance Methods
getStartMessage(): Object
Get the message to post to the worker, called just before running the task. The transferred objects are moved to the worker (no copy) and are no longer usable by the caller. Default returns the start message with no transferred objects.
Returns
Object— The message and the list of objects to transfer.
getWorker(): Worker | undefined
Get the task web worker. Defaults returns undefined.
Returns
Worker| undefined— The task worker.
getWorker(): undefined
Returns
undefined— No worker in tests.