Skip to main content
Module

x/rimbu/channel/mod.ts>Channel

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
namespace Channel
Re-export
import { Channel } from "https://deno.land/x/rimbu@1.0.2/channel/mod.ts";

Interfaces

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.

interface Channel
implements [Channel.Read]<T>, [Channel.Write]<T>
Re-export
import { type Channel } from "https://deno.land/x/rimbu@1.0.2/channel/mod.ts";

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.

Type Parameters

optional
T = void
variable Channel
Re-export
import { Channel } from "https://deno.land/x/rimbu@1.0.2/channel/mod.ts";