Skip to main content
Module

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

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

Parameters

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

Returns

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