Skip to main content
Process.once - process - Node documentation
method Process.once

Usage in Deno

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

Parameters

event: "beforeExit"

Return Type

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

Parameters

event: "disconnect"

Return Type

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

Parameters

event: "exit"
listener: ExitListener

Return Type

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

Parameters

event: "rejectionHandled"

Return Type

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

Parameters

event: "uncaughtException"

Return Type

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

Parameters

event: "uncaughtExceptionMonitor"

Return Type

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

Parameters

event: "unhandledRejection"

Return Type

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

Parameters

event: "warning"
listener: WarningListener

Return Type

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

Parameters

event: "message"
listener: MessageListener

Return Type

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

Parameters

event: Signals
listener: SignalsListener

Return Type

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

Parameters

event: "multipleResolves"

Return Type

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

Parameters

event: "worker"
listener: WorkerListener

Return Type

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

Parameters

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

Return Type

this