# Worker.terminate()

Ends the current worker thread. This API can only be called on the worker object in the main thread.