- Type Parameters:
T - the type of elements to observe
- All Implemented Interfaces:
- Observable<java.util.List<T>>
- Enclosing class:
- Buffer
public static final class Buffer.WithTime<T>
extends java.lang.Object
implements Observable<java.util.List<T>>
Buffers the source observable Ts into a list of Ts periodically and submits them to the returned observable.
Each next() invocation contains a new and modifiable list of Ts. The signaled List of Ts might be empty if
no Ts appeared from the original source within the current timespan.
The last T of the original source triggers an early submission to the output.
The scheduling is done on the supplied Scheduler.