Skip to content

Worker.terminate ​

JS
    Worker.terminate()

Ends the current worker thread.

Can only be called on a worker object in the main thread.