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

x/compress/deps.ts>EventEmitter#once

compress and uncompress for Deno
Go to Latest
method EventEmitter.prototype.once
import { EventEmitter } from "https://deno.land/x/compress@v0.3.8/deps.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: GenericFunction