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

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

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

Constructors

new
RemoteChannelWrite(port: RemoteChannel.SimpleMessagePort, config: RemoteChannel.ReadConfig)

Properties

readonly
initialized: Promise<void>
readonly
isClosed: boolean

Methods

close(): void
send(value: T, options?: { signal?: AbortSignal | undefined; timeoutMs?: number | undefined; catchChannelErrors?: boolean | undefined; }): Promise<any>
sendAll(source: AsyncStreamSource<T>, options?: { signal?: AbortSignal | undefined; timeoutMs?: number | undefined; catchChannelErrors?: boolean | undefined; }): Promise<any>
writable(): Channel.Write<T>