WorkerThread

dwv.utils. WorkerThread

new WorkerThread(parentPool)

Source:

Worker thread.

Parameters:
Name Type Description
parentPool object

The parent pool.

Methods

getId() → {string}

Source:

Get the thread ID.

Returns:

The thread ID (alphanumeric).

Type
string

run(workerTask)

Source:

Run a worker task

Parameters:
Name Type Description
workerTask object

The task to run.

stop()

Source:

Finish a task and tell the parent.