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

x/aleph/events.ts>EventEmitter#once

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

Adds a one-time listener function for the event named eventName. The next time eventName is triggered, this listener is removed and then invoked.

Parameters

eventName: string | symbol
listener: Function