import { type WriteChannel } from "https://deno.land/x/easyts@0.1.3/mod.ts";
a write-only channel
Methods
write(val: T, exception?: boolean): boolean | Promise<boolean>
Writes a value to the channel, blocking if the channel is not writable until the channel is writable or closed
tryWrite(val: T, exception?: boolean): boolean
Attempt to write a value to the channel
Close the channel, after which the channel will not be able to write, all blocked reads and writes are returned, but the value that has been written to the channel is guaranteed to be fully read