Skip to main content
Module

x/aleph/events.ts>EventEmitter#emit

The Full-stack Framework in Deno.
Go to Latest
method EventEmitter.prototype.emit
import { EventEmitter } from "https://deno.land/x/aleph@v0.2.13/events.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