Listens to stream and collects events. When count events are collected, the promise resolves with an array of events.
count
Rejects if stream completes before count events are collected.
Generated using TypeDoc
Listens to stream and collects events. When
count
events are collected, the promise resolves with an array of events.Rejects if stream completes before
count
events are collected.