Skip to main content
Version: Next

WebWorkerEvent enum

Signature​

export declare enum WebWorkerEvent

Enumeration Members​

Member

Value

Description

Console

"console"

Emitted when the worker calls a console API.

Error

"error"

Emitted when the worker throws an exception.

Deprecated:

Use WebWorkerEvent.Exception instead.

Exception

"exception"

Emitted when an uncaught exception happens within the worker. Contains a RemoteException.

Remarks:

The handle of the exception is disposed right after the event has been dispatched. Call move() on it synchronously inside the listener to keep it alive.