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

x/aleph/events.ts>EventEmitter#once

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