class Worker
extends EventTarget

Constructors

new
Worker(specifier: string | URL, options?: WorkerOptions)
[src]

Properties

optional
onerror: (e: ErrorEvent) => void
[src]
optional
onmessage: (e: MessageEvent) => void
[src]
optional
onmessageerror: (e: MessageEvent) => void
[src]

Methods

addEventListener<K extends keyof WorkerEventMap>(
type: K,
listener: (this: Worker, ev: WorkerEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
[src]
addEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void
[src]
postMessage(message: any, transfer: Transferable[]): void[src]
postMessage(message: any, options?: StructuredSerializeOptions): void[src]
removeEventListener<K extends keyof WorkerEventMap>(
type: K,
listener: (this: Worker, ev: WorkerEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
[src]
removeEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void
[src]
terminate(): void[src]