Skip to main content

emit

method Worker.prototype.emit
Jump to headingWorker.prototype.emit(
event: "error",
err: Error,
): boolean

Parameters Jump to heading

Jump to headingevent: "error"

Return Type Jump to heading

boolean
Jump to headingWorker.prototype.emit(
event: "exit",
exitCode: number,
): boolean

Parameters Jump to heading

Jump to headingevent: "exit"
Jump to headingexitCode: number

Return Type Jump to heading

boolean
Jump to headingWorker.prototype.emit(
event: "message",
value: any,
): boolean

Parameters Jump to heading

Jump to headingevent: "message"

Return Type Jump to heading

boolean
Jump to headingWorker.prototype.emit(
event: "messageerror",
error: Error,
): boolean

Parameters Jump to heading

Jump to headingevent: "messageerror"
Jump to headingerror: Error

Return Type Jump to heading

boolean
Jump to headingWorker.prototype.emit(event: "online"): boolean

Parameters Jump to heading

Jump to headingevent: "online"

Return Type Jump to heading

boolean
Jump to headingWorker.prototype.emit(
event: string | symbol,
...args: any[],
): boolean

Parameters Jump to heading

Jump to headingevent: string | symbol
Jump to heading<span>...args</span>: any[]

Return Type Jump to heading

boolean
Back to top