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

x/easyts/signals/signals_combiners.ts>SumCombiner

js library written with ts, use select and chan like golang in js.
Latest
class SumCombiner
implements Combiner<number, number>
import { SumCombiner } from "https://deno.land/x/easyts@0.1.3/signals/signals_combiners.ts";

An example of a combiner to get the sum of the return values of all slots

Properties

private
sum_: number
readonly
value: number

Methods

invoke(val: number, iterator: Iterator<Slot<number, number>>)