Skip to main content
Module

x/async_channels/src/channel.ts>Channel#duplicate

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

duplicate creates multiple channels (determined by n), and consumes this channel. The consumed values are then sent to all channels

Parameters

optional
n = [UNSUPPORTED]
optional
pipeOpts: ChannelDuplicateOptions