Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.2.1/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>