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

x/subscription/mod.ts>default#subscribe

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

Subscribe to the event.

Parameters

...listeners: Subscription<T>[]

The subscriptions to add.