Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.3/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