bufferToggle
Buffers the source Observable values starting from an emission from
openings and ending when the output of closingSelector emits.
Parameters
Returns
OperatorFunction<T, T[]>: An observable of arrays of buffered values.
Description
Collects values from the past as an array. Starts
collecting only when opening emits, and calls the closingSelector
function to get an Observable that tells when to close the buffer.

Buffers values from the source by opening the buffer via signals from an
Observable provided to openings, and closing and sending the buffers when
a Subscribable or Promise returned by the closingSelector function emits.
Example
Every other second, emit the click events from the next 500ms