import { type ReadChannel } from "https://deno.land/x/easyts@0.1.3/mod.ts";
a read-only channel
Methods
read(): ReadReturn<T>
Read a value from the channel, block if there is no value to read, and return until there is a value or the channel is closed
readRaw(): ReadRawReturn<T>
Read a value from the channel, block if there is no value to read, and return until there is a value or the channel is closed
tryRead(): IteratorResult<T> | undefined
Attempts to read a value from the channel, returns undefined if no value is readable, returns {done:true} if the channel is closed
[[Symbol.asyncIterator]](): AsyncGenerator<T>
Implement asynchronous iterators