Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/easyts/mod.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.3/mod.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