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

x/rimbu/channel/custom/remote-channel/remote-channel-impl.ts>RemoteChannelRead

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
class RemoteChannelRead
implements [Channel.Read]<T>
import { RemoteChannelRead } from "https://deno.land/x/rimbu@1.1.0/channel/custom/remote-channel/remote-channel-impl.ts";

Constructors

new
RemoteChannelRead(port: RemoteChannel.SimpleMessagePort, config: RemoteChannel.WriteConfig)

Properties

readonly
capacity: number
readonly
initialized: Promise<void>
readonly
isExhausted: boolean
readonly
length: number

Methods

readable(): Channel.Read<T>
receive<RT>(options?: { signal?: AbortSignal | undefined; timeoutMs?: number | undefined; recover?: ((channelError: Channel.Error) => RT) | undefined; }): Promise<T | RT>
[Symbol.asyncIterator](): AsyncIterator<T>