Skip to main content

once

method ChildProcess.prototype.once
Jump to headingChildProcess.prototype.once(
event: string,
listener: (...args: any[]) => void,
): this

Parameters Jump to heading

Jump to headingevent: string
Jump to headinglistener: (...args: any[]) => void

Return Type Jump to heading

this
Jump to headingChildProcess.prototype.once(
event: "close",
listener: (
code: number | null,
signal: Signals | null,
) => void
,
): this

Parameters Jump to heading

Jump to headingevent: "close"
Jump to headinglistener: (
code: number | null,
signal: Signals | null,
) => void

Return Type Jump to heading

this
Jump to headingChildProcess.prototype.once(
event: "disconnect",
listener: () => void,
): this

Parameters Jump to heading

Jump to headingevent: "disconnect"
Jump to headinglistener: () => void

Return Type Jump to heading

this
Jump to headingChildProcess.prototype.once(
event: "error",
listener: (err: Error) => void,
): this

Parameters Jump to heading

Jump to headingevent: "error"
Jump to headinglistener: (err: Error) => void

Return Type Jump to heading

this
Jump to headingChildProcess.prototype.once(
event: "exit",
listener: (
code: number | null,
signal: Signals | null,
) => void
,
): this

Parameters Jump to heading

Jump to headingevent: "exit"
Jump to headinglistener: (
code: number | null,
signal: Signals | null,
) => void

Return Type Jump to heading

this
Jump to headingChildProcess.prototype.once(
event: "message",
listener: (
message: Serializable,
sendHandle: SendHandle,
) => void
,
): this

Parameters Jump to heading

Jump to headingevent: "message"
Jump to headinglistener: (
message: Serializable,
sendHandle: SendHandle,
) => void

Return Type Jump to heading

this
Jump to headingChildProcess.prototype.once(
event: "spawn",
listener: () => void,
): this

Parameters Jump to heading

Jump to headingevent: "spawn"
Jump to headinglistener: () => void

Return Type Jump to heading

this
Back to top