terminate method

void terminate()

Terminates the worker immediately.

This stops the worker thread and discards any tasks or messages.

Implementation

external void terminate();