Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/node/_stream.d.ts>Readable#emit

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
method Readable.prototype.emit
import { Readable } from "https://deno.land/std@0.135.0/node/_stream.d.ts";

Parameters

event: "close"

Returns

boolean

Parameters

event: "data"
chunk: any

Returns

boolean

Parameters

event: "end"

Returns

boolean

Parameters

event: "error"
err: Error

Returns

boolean

Parameters

event: "pause"

Returns

boolean

Parameters

event: "readable"

Returns

boolean

Parameters

event: "resume"

Returns

boolean

Parameters

event: string | symbol
...args: any[]

Returns

boolean