Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

std/node/_events.d.ts

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
import * as mod from "https://deno.land/std@0.125.0/node/_events.d.ts";

Classes

The EventEmitter class is defined and exposed by the events module:

The EventEmitter class is defined and exposed by the events module:

Functions

Returns a copy of the array of listeners for the event named eventName.

Creates a Promise that is fulfilled when the EventEmitter emits the given event or that is rejected if the EventEmitter emits 'error' while waiting. The Promise will resolve with an array of all the arguments emitted to the given event.