Skip to main content

emit

method Process.emit
Jump to headingProcess.emit(
event: "beforeExit",
code: number,
): boolean

Parameters Jump to heading

Jump to headingevent: "beforeExit"
Jump to headingcode: number

Return Type Jump to heading

boolean
Jump to headingProcess.emit(event: "disconnect"): boolean

Parameters Jump to heading

Jump to headingevent: "disconnect"

Return Type Jump to heading

boolean
Jump to headingProcess.emit(
event: "exit",
code: number,
): boolean

Parameters Jump to heading

Jump to headingevent: "exit"
Jump to headingcode: number

Return Type Jump to heading

boolean
Jump to headingProcess.emit(
event: "rejectionHandled",
promise: Promise<unknown>,
): boolean

Parameters Jump to heading

Jump to headingevent: "rejectionHandled"
Jump to headingpromise: Promise<unknown>

Return Type Jump to heading

boolean
Jump to headingProcess.emit(
event: "uncaughtException",
error: Error,
): boolean

Parameters Jump to heading

Jump to headingevent: "uncaughtException"
Jump to headingerror: Error

Return Type Jump to heading

boolean
Jump to headingProcess.emit(
event: "uncaughtExceptionMonitor",
error: Error,
): boolean

Parameters Jump to heading

Jump to headingevent: "uncaughtExceptionMonitor"
Jump to headingerror: Error

Return Type Jump to heading

boolean
Jump to headingProcess.emit(
event: "unhandledRejection",
reason: unknown,
promise: Promise<unknown>,
): boolean

Parameters Jump to heading

Jump to headingevent: "unhandledRejection"
Jump to headingreason: unknown
Jump to headingpromise: Promise<unknown>

Return Type Jump to heading

boolean
Jump to headingProcess.emit(
event: "warning",
warning: Error,
): boolean

Parameters Jump to heading

Jump to headingevent: "warning"
Jump to headingwarning: Error

Return Type Jump to heading

boolean
Jump to headingProcess.emit(
event: "message",
message: unknown,
sendHandle: unknown,
): this

Parameters Jump to heading

Jump to headingevent: "message"
Jump to headingmessage: unknown
Jump to headingsendHandle: unknown

Return Type Jump to heading

this
Jump to headingProcess.emit(
event: Signals,
signal?: Signals,
): boolean

Parameters Jump to heading

Return Type Jump to heading

boolean
Jump to headingProcess.emit(
event: "multipleResolves",
promise: Promise<unknown>,
value: unknown,
): this

Parameters Jump to heading

Jump to headingevent: "multipleResolves"
Jump to headingpromise: Promise<unknown>
Jump to headingvalue: unknown

Return Type Jump to heading

this
Jump to headingProcess.emit(
event: "worker",
listener: WorkerListener,
): this

Parameters Jump to heading

Return Type Jump to heading

this
Back to top