Skip to content

Grouping of events

Tyler Long edited this page Oct 11, 2018 · 1 revision

Grouping of events

More often than not, you want to process event in batch. Thus you need to group them. A good way to group event over time is by "burst".

Here you go:

const bufferedStream = stream.pipe(buffer(stream.pipe(debounceTime(2))))
Clone this wiki locally