Skip to main content
ReadableBase.prototype.once - node__stream.d.ts - Node documentation
method ReadableBase.prototype.once

Usage in Deno

```typescript import { ReadableBase } from "node:node__stream.d.ts"; ```
ReadableBase.prototype.once(
event: "close",
listener: () => void,
): this

Parameters

event: "close"
listener: () => void

Return Type

this
ReadableBase.prototype.once(
event: "data",
listener: (chunk: any) => void,
): this

Parameters

event: "data"
listener: (chunk: any) => void

Return Type

this
ReadableBase.prototype.once(
event: "end",
listener: () => void,
): this

Parameters

event: "end"
listener: () => void

Return Type

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

Parameters

event: "error"
listener: (err: Error) => void

Return Type

this
ReadableBase.prototype.once(
event: "pause",
listener: () => void,
): this

Parameters

event: "pause"
listener: () => void

Return Type

this
ReadableBase.prototype.once(
event: "readable",
listener: () => void,
): this

Parameters

event: "readable"
listener: () => void

Return Type

this
ReadableBase.prototype.once(
event: "resume",
listener: () => void,
): this

Parameters

event: "resume"
listener: () => void

Return Type

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

Parameters

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

Return Type

this