Skip to main content
Module

x/easyts/channel.ts>WriteCaseLike

js library written with ts, use select and chan like golang in js.
Latest
interface WriteCaseLike
import { type WriteCaseLike } from "https://deno.land/x/easyts@0.1.2/channel.ts";

Properties

readonly
isReady: boolean

Returns whether this case is ready

Methods

reset(): void

reset read-write status

tryInvoke(): boolean
do(resolve: (c: CaseLike) => void, reject: (c: CaseLike) => void): Connection
invoke(): Promise<void>
write(): boolean

Returns whether the case was written successfully, throws an exception if the case is not ready