src/main/java/io/reactivex/Flowable.java
@CheckReturnValue
    @BackpressureSupport(BackpressureKind.FULL)
    @SchedulerSupport(SchedulerSupport.NONE)
    public final Flowable<Flowable<T>> window(long count) {
        return window(count, count, bufferSize());
    }
@CheckReturnValue
    @BackpressureSupport(BackpressureKind.FULL)
    @SchedulerSupport(SchedulerSupport.NONE)
    public final Flowable<Flowable<T>> window(long count) {
        return window(count, count, bufferSize());
    }
Returns a Flowable that emits windows of items it collects from the source Publisher. The resulting
Publisher emits connected, non-overlapping windows, each containing {@code count} items. When the source
Publisher completes or encounters an error, the resulting Publisher emits the current window and
propagates the notification from the source Publisher.
<p>
<img width="640" height="400" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/window3.png" alt="">
<dl>
<dt><b>Backpressure:</b></dt>
<dd>The operator honors backpressure of its inner and outer subscribers, however, the inner Publisher uses an
unbounded buffer that may hold at most {@code count} elements.</dd>
<dt><b>Scheduler:</b></dt>
<dd>This version of {@code window} does not operate by default on a particular {@link Scheduler}.</dd>
</dl>

@param count
the maximum size of each window before it should be emitted
@return a Flowable that emits connected, non-overlapping windows, each containing at most
{@code count} items from the source Publisher
@throws IllegalArgumentException if either count is non-positive
@see <a href="http://reactivex.io/documentation/operators/window.html">ReactiveX operators documentation: Window</a>