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

x/rimbu/channel/custom/channel/channel.ts

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
import * as rimbu from "https://deno.land/x/rimbu@1.0.2/channel/custom/channel/channel.ts";

Interfaces

A Rimbu Channel offers various ways to synchronize communication between asynchronous processes. These processes can send and receive messages in a blocking way. Channel messages are of type T, and channels can be buffered or unbuffered. A buffered channel can queue a given amount of messages before blocking the sender.

The configuration options for creating a Channel.

Defines the static Channel API.

A read-only Channel that can perform blocking reads. This means that a receive call will block until a message is available.

A write-only Channel that can perform blocking writes. This means that a send call will block until the channel has capacity to send a message.

Type Aliases

The Channel Error type.

Utility type to extract the message type from a Channel.