Interface: ThrottledBox<T>
Defined in: throttle.ts:42
A signal whose writes are rate-limited. get is for the graph, not the island.
Type Parameters
T
T
Properties
get
get:
Accessor<T>
Defined in: throttle.ts:44
The last published value. Reactive; lags the island by up to one interval.
Methods
flush()
flush():
void
Defined in: throttle.ts:48
Publish any coalesced value right now — for teardown, and for tests.
Returns
void
set()
set(
next):void
Defined in: throttle.ts:46
Offer a value (or an updater over the last offered one). Publishes on the graph's schedule.
Parameters
next
T | ((previous) => T)
Returns
void