import { Signals } from "https://deno.land/x/easyts@0.1.3/signals/signals.ts";
Signals/Slots, you can associate multiple Slots with Signals, when Signals generate signals, Slots will be called in turn
Properties
private
cons_: Array<Connection<T, TR>>Connected Signals/Slots
readonly
conns: Iterator<Connection<T, TR>>Returns an iterator to iterate over all connections
readonly
value: TR | undefinedIf there is a combiner, return the latest value of the combiner
Methods
connectSlot(slot: SlotCallback<T, TR>, tag?: any): Connection<T, TR>
connect Signals/Slots
disconnectConnection(c: Connection<T, TR>)
disconnectSlot(slot: Slot<T, TR>)
Disconnect all connections from slot to this signals
disconnectTag(tag: any)
Disconnect all tags
reset()
delete all slots