The EventTarget.addEventListener() method registers the specified listener on the EventTarget it's called on.
Dispatches an Event at the specified EventTarget, invoking the affected EventListeners in the appropriate order.
The AbstractWorker.onerror property represents an EventHandler, that is a function to be called when the error event occurs and bubbles through the Worker.
The Worker.onmessage property represents an EventHandler, that is a function to be called when the message event occurs.
The Worker.postMessage() method sends a message to the worker's inner scope.
Removes the event listener previously registered with EventTarget.addEventListener.
The Worker.terminate() method immediately terminates the Worker.