Skip to main content
Module

x/aleph/events.ts>EventEmitter#prependListener

The Full-stack Framework in Deno.
Go to Latest
method EventEmitter.prototype.prependListener
import { EventEmitter } from "https://deno.land/x/aleph@v0.2.13/events.ts";

Adds the listener function to the beginning of the listeners array for the event named eventName. No checks are made to see if the listener has already been added. Multiple calls passing the same combination of eventName and listener will result in the listener being added, and called, multiple times.

Parameters

eventName: string | symbol
listener: Function | WrappedFunction