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

x/effection/lib/channel.ts

Structured concurrency and effects for JavaScript
Go to Latest
import * as effection from "https://deno.land/x/effection@3.0.0-beta.3/lib/channel.ts";

Functions

Create a new Channel. Use channels to communicate between operations. In order to dispatch messages from outside an operation such as from a callback, use Signal.

Interfaces

A broadcast channel that multiple consumers can subscribe to the via the same Stream, and messages sent to the channel are received by all consumers. The channel is not buffered, so if there are no consumers, the message is dropped.