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

x/easyts/mod.ts>Chan#writeCase

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

Create a case for select to write to

Parameters

val: T

value to write

optional
exception: boolean

If set to true, writing to a closed channel will throw an exception