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

x/pubsub/mod.ts>PubSub#subscribe

A simple PubSub module for Deno.
Latest
method PubSub.prototype.subscribe
import { PubSub } from "https://deno.land/x/pubsub@0.0.6/mod.ts";

Type Parameters

T extends Constructable<unknown>

Parameters

subscriptable: T
cb: Subscriber<InstanceType<T>>