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

x/easyts/signals/mod.ts>Combiner

js library written with ts, use select and chan like golang in js.
Latest
interface Combiner
Re-export
import { type Combiner } from "https://deno.land/x/easyts@0.1.3/signals/mod.ts";

The combiner is used to obtain the return value of the slot, and to determine whether to continue calling subsequent slots

Properties

optional
before: VoidCallback

Called before each execution of the combiner

optional
after: VoidCallback

Called after each execution of the combiner

readonly
optional
value: TR

Returns the final return value of the slot after the last signal is generated

Methods

invoke(val: T, iterator: Iterator<Slot<T, TR>>): void

Execute the combiner