Skip to main content
Module

x/easyts/channel.ts>Chan#tryRead

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

Attempts to read a value from the channel, returns undefined if no value is readable, returns {done:true} if the channel is closed

Returns

IteratorResult<T> | undefined