Process.addListener - Node documentation
method Process.addListener

Usage in Deno

import { type Process } from "node:process";
Process.addListener(
event: "beforeExit",
): this

Parameters

event: "beforeExit"

Return Type

this
Process.addListener(
event: "disconnect",
): this

Parameters

event: "disconnect"

Return Type

this
Process.addListener(
event: "exit",
listener: ExitListener,
): this

Parameters

event: "exit"
listener: ExitListener

Return Type

this
Process.addListener(
event: "rejectionHandled",
): this

Parameters

event: "rejectionHandled"

Return Type

this
Process.addListener(
event: "uncaughtException",
): this

Parameters

event: "uncaughtException"

Return Type

this
Process.addListener(
event: "uncaughtExceptionMonitor",
): this

Parameters

event: "uncaughtExceptionMonitor"

Return Type

this
Process.addListener(
event: "unhandledRejection",
): this

Parameters

event: "unhandledRejection"

Return Type

this
Process.addListener(
event: "warning",
listener: WarningListener,
): this

Parameters

event: "warning"
listener: WarningListener

Return Type

this
Process.addListener(
event: "message",
listener: MessageListener,
): this

Parameters

event: "message"
listener: MessageListener

Return Type

this
Process.addListener(
event: Signals,
listener: SignalsListener,
): this

Parameters

event: Signals
listener: SignalsListener

Return Type

this
Process.addListener(
event: "multipleResolves",
): this

Parameters

event: "multipleResolves"

Return Type

this
Process.addListener(
event: "worker",
listener: WorkerListener,
): this

Parameters

event: "worker"
listener: WorkerListener

Return Type

this