Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/async_channels/src/broadcast.ts>BroadcastChannel#doSubscribe

Inspired by Go & Clojure Channels, async_channels provides channels as an asynchronous communication method between asynchronous functions.
Go to Latest
method BroadcastChannel.prototype.doSubscribe
import { BroadcastChannel } from "https://deno.land/x/async_channels@v1.0.0-rc5/src/broadcast.ts";

Parameters

tuple: [TopicFn<TTopic>, "topicFn"] | [TTopic, "topic"]
optional
subOpts: BroadcastSubscribeOptions

Returns

[Receiver<TMsg>, () => void]