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

x/velo/deps.ts>EventEmitter#removeAllListeners

Performant Cache implementations for Deno. Supports LRU, LFU, ARC and other caching policies.
Go to Latest
method EventEmitter.prototype.removeAllListeners
Re-export
import { EventEmitter } from "https://deno.land/x/velo@0.1.5/deps.ts";

Removes all listeners, or those of the specified eventName.

It is bad practice to remove listeners added elsewhere in the code, particularly when the EventEmitter instance was created by some other component or module (e.g. sockets or file streams).

Returns a reference to the EventEmitter, so that calls can be chained.

Parameters

optional
event: string | symbol