Buffer events and emit them as an array
The event type to buffer
Time window to collect events in milliseconds
Callback for buffered events
Unsubscribe function
Buffer events and emit them as an array