API Reference
throttle()
throttle (alias throttleTime): leading-edge — emit a value immediately, then ignore the source for ms. exhaustMap drops new source values while the current window inner is alive; the window emits v at its leading edge and stays alive ms.
Matches the RxJS-7 throttleTime DEFAULT (leading:true, trailing:false). The leading/trailing OPTIONS RxJS exposes are NOT provided (a capability gap, not a behavior divergence; B44) — add a trailing-window form if a consumer needs it.
Import
import { throttle } from "@graphrefly/ts/operators";
Signature
function throttle(ms: number): Operator<S, S>
Parameters
| Parameter | Type | Description |
|---|---|---|
ms | number | Duration or timestamp in milliseconds. |
Returns
A Operator<S, S> value.
Example
import { throttle } from "@graphrefly/ts/operators";
Source
packages/ts/src/graph/time.ts