Skip to main content
method Worker.prototype.once
Worker.prototype.once(
event: "error",
listener: (err: Error) => void,
): this
Deprecated

Parameters

event: "error"
listener: (err: Error) => void

Return Type

this
Worker.prototype.once(
event: "exit",
listener: (exitCode: number) => void,
): this
Deprecated

Parameters

event: "exit"
listener: (exitCode: number) => void

Return Type

this
Worker.prototype.once(
event: "message",
listener: (value: any) => void,
): this
Deprecated

Parameters

event: "message"
listener: (value: any) => void

Return Type

this
Worker.prototype.once(
event: "messageerror",
listener: (error: Error) => void,
): this
Deprecated

Parameters

event: "messageerror"
listener: (error: Error) => void

Return Type

this
Worker.prototype.once(
event: "online",
listener: () => void,
): this
Deprecated

Parameters

event: "online"
listener: () => void

Return Type

this
Worker.prototype.once(
event: string | symbol,
listener: (...args: any[]) => void,
): this
Deprecated

Parameters

event: string | symbol
listener: (...args: any[]) => void

Return Type

this
Back to top