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

x/rimbu/channel/main/index.ts>CrossChannel

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

Interfaces

Configuration options for creating a CrossChannel

Defines the static CrossChannel API.

Type Aliases

A pair of CrossChannels in which the send module of the first is connected to the receive of the second, and the send module of the second is connected to the receive module of the first.

interface CrossChannel
implements [Channel.Read]<TReceive>, [Channel.Write]<TSend>
Re-export
import { type CrossChannel } from "https://deno.land/x/rimbu@1.2.0/channel/main/index.ts";

A CrossChannel is a channel of which the send and receive modules are not internally connected. This means that the send and receive message types can also differ. A normal Channel can receive its own message, but a CrossChannel cannot, and so they are usually created in pairs to perform bidirectional communication with some other entity.

Type Parameters

optional
TSend = void
optional
TReceive = TSend
variable CrossChannel
Re-export
import { CrossChannel } from "https://deno.land/x/rimbu@1.2.0/channel/main/index.ts";

type

CrossChannel.Constructors