bufferTime
signature: bufferTime(bufferTimeSpan: number, bufferCreationInterval: number, scheduler: Scheduler): Observable
bufferTime(bufferTimeSpan: number, bufferCreationInterval: number, scheduler: Scheduler): Observable
Collect emitted values until provided time has passed, emit as array.
Examples
Example 1: Buffer for 2 seconds
( StackBlitz | jsBin | jsFiddle )
Example 2: Multiple active buffers
( StackBlitz | jsBin | jsFiddle )
Additional Resources
bufferTime 📰 - Official docs
bufferTime - In Depth Dev Reference
📁 Source Code: https://github.com/ReactiveX/rxjs/blob/master/src/internal/operators/bufferTime.ts
Last updated