Skip to main content
method Worker.prototype.emit
Worker.prototype.emit(
event: "error",
err: Error,
): boolean
Deprecated

Parameters

event: "error"
err: Error

Return Type

boolean
Worker.prototype.emit(
event: "exit",
exitCode: number,
): boolean
Deprecated

Parameters

event: "exit"
exitCode: number

Return Type

boolean
Worker.prototype.emit(
event: "message",
value: any,
): boolean
Deprecated

Parameters

event: "message"
value: any

Return Type

boolean
Worker.prototype.emit(
event: "messageerror",
error: Error,
): boolean
Deprecated

Parameters

event: "messageerror"
error: Error

Return Type

boolean
Worker.prototype.emit(event: "online"): boolean
Deprecated

Parameters

event: "online"

Return Type

boolean
Worker.prototype.emit(
event: string | symbol,
...args: any[],
): boolean
Deprecated

Parameters

event: string | symbol
<span>...args</span>: any[]

Return Type

boolean
Back to top