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

x/subscription/mod.ts>Event#subscribeOnce

An event object that calls subscriptions each time the event is dispatched.
Latest
method Event.prototype.subscribeOnce
import { Event } from "https://deno.land/x/subscription@2.0.1/mod.ts";

Subscribe to the event once.

Parameters

...listeners: Subscription<T>[]

The subscriptions to add.