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

x/deno/ext/node/polyfills/events.ts>setMaxListeners

A modern runtime for JavaScript and TypeScript.
Latest
function setMaxListeners
import { setMaxListeners } from "https://deno.land/x/deno@v2.0.4/ext/node/polyfills/events.ts";

n {number} A non-negative number. The maximum number of listeners per EventTarget event. ...eventsTargets {EventTarget[]|EventEmitter[]} Zero or more {EventTarget} or {EventEmitter} instances. If none are specified, n is set as the default max for all newly created {EventTarget} and {EventEmitter} objects.

Parameters

n: number