Rx.Observable.prototype.bufferWithTime(timeSpan, [timeShift | scheduler], [scheduler])
Projects each element of an observable sequence into zero or more buffers which are produced based on timing information.
参数
timeSpan
(Number
): Length of each buffer (specified as an integer denoting milliseconds).[timeShift]
(Number
): Interval between creation of consecutive buffers (specified as an integer denoting milliseconds).[scheduler=Rx.Scheduler.timeout]
(Scheduler
): Scheduler to run buffer timers on. If not specified, the timeout scheduler is used.
返回值
(Observable
): An observable sequence of buffers.