Documentation / @eventkit/base / buffer
Function: buffer()
ts
function buffer<T>(pushNotifier): OperatorFunction<T, T[]>
Buffers the source observable until the pushNotifier
observable emits a value. Each time the pushNotifier
observable emits a value, the current buffer is emitted and a new buffer is started.
Type Parameters
Type Parameter |
---|
T |
Parameters
Parameter | Type | Description |
---|---|---|
pushNotifier | AsyncObservable <any > | An observable that emits a value when the buffer should be emitted and a new buffer should be started. |
Returns
OperatorFunction
<T
, T
[]>