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

x/compress/deps.ts>EventEmitter#emit

compress and uncompress for Deno
Go to Latest
method EventEmitter.prototype.emit
import { EventEmitter } from "https://deno.land/x/compress@v0.3.8/deps.ts";

Synchronously calls each of the listeners registered for the event named eventName, in the order they were registered, passing the supplied arguments to each.

Parameters

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

Returns

boolean

true if the event had listeners, false otherwise