Skip to main content
Module

x/easyts/channel.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.2/channel.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