@@ -3285,8 +3285,9 @@ public final <TClosing> Observable<List<T>> buffer(Func0<? extends Observable<?
3285
3285
/**
3286
3286
* Returns an Observable that emits buffers of items it collects from the source Observable. The resulting
3287
3287
* Observable emits connected, non-overlapping buffers, each containing {@code count} items. When the source
3288
- * Observable completes or encounters an error, the resulting Observable emits the current buffer and
3289
- * propagates the notification from the source Observable.
3288
+ * Observable completes, the current buffer is emitted, and the event is propagated to all subscribed
3289
+ * {@link Observer}s. Note that if the source {@link Observable} issues an onError notification the event
3290
+ * is passed on immediately without first emitting the buffer it is in the process of assembling.
3290
3291
* <p>
3291
3292
* <img width="640" height="320" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/buffer3.png" alt="">
3292
3293
* <dl>
@@ -3307,8 +3308,9 @@ public final Observable<List<T>> buffer(int count) {
3307
3308
/**
3308
3309
* Returns an Observable that emits buffers of items it collects from the source Observable. The resulting
3309
3310
* Observable emits buffers every {@code skip} items, each containing {@code count} items. When the source
3310
- * Observable completes or encounters an error, the resulting Observable emits the current buffer and
3311
- * propagates the notification from the source Observable.
3311
+ * Observable completes, the current buffer is emitted, and the event is propagated to all subscribed
3312
+ * {@link Observer}s. Note that if the source {@link Observable} issues an onError notification the event
3313
+ * is passed on immediately without first emitting the buffer it is in the process of assembling.
3312
3314
* <p>
3313
3315
* <img width="640" height="320" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/buffer4.png" alt="">
3314
3316
* <dl>
@@ -3334,8 +3336,9 @@ public final Observable<List<T>> buffer(int count, int skip) {
3334
3336
* Returns an Observable that emits buffers of items it collects from the source Observable. The resulting
3335
3337
* Observable starts a new buffer periodically, as determined by the {@code timeshift} argument. It emits
3336
3338
* each buffer after a fixed timespan, specified by the {@code timespan} argument. When the source
3337
- * Observable completes or encounters an error, the resulting Observable emits the current buffer and
3338
- * propagates the notification from the source Observable.
3339
+ * Observable completes, the current buffer is emitted, and the event is propagated to all subscribed
3340
+ * {@link Observer}s. Note that if the source {@link Observable} issues an onError notification the event
3341
+ * is passed on immediately without first emitting the buffer it is in the process of assembling.
3339
3342
* <p>
3340
3343
* <img width="640" height="320" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/buffer7.png" alt="">
3341
3344
* <dl>
@@ -3364,8 +3367,10 @@ public final Observable<List<T>> buffer(long timespan, long timeshift, TimeUnit
3364
3367
* Returns an Observable that emits buffers of items it collects from the source Observable. The resulting
3365
3368
* Observable starts a new buffer periodically, as determined by the {@code timeshift} argument, and on the
3366
3369
* specified {@code scheduler}. It emits each buffer after a fixed timespan, specified by the
3367
- * {@code timespan} argument. When the source Observable completes or encounters an error, the resulting
3368
- * Observable emits the current buffer and propagates the notification from the source Observable.
3370
+ * {@code timespan} argument. When the source Observable completes completes, the current buffer is emitted,
3371
+ * and the event is propagated to all subscribed {@link Observer}s. Note that if the source {@link Observable}
3372
+ * issues an onError notification the event is passed on immediately without first emitting the buffer it is
3373
+ * in the process of assembling.
3369
3374
* <p>
3370
3375
* <img width="640" height="320" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/buffer7.s.png" alt="">
3371
3376
* <dl>
@@ -3395,8 +3400,10 @@ public final Observable<List<T>> buffer(long timespan, long timeshift, TimeUnit
3395
3400
/**
3396
3401
* Returns an Observable that emits buffers of items it collects from the source Observable. The resulting
3397
3402
* Observable emits connected, non-overlapping buffers, each of a fixed duration specified by the
3398
- * {@code timespan} argument. When the source Observable completes or encounters an error, the resulting
3399
- * Observable emits the current buffer and propagates the notification from the source Observable.
3403
+ * {@code timespan} argument. When the source Observable completes, the current buffer is emitted,
3404
+ * and the event is propagated to all subscribed {@link Observer}s. Note that if the source {@link Observable}
3405
+ * issues an onError notification the event is passed on immediately without first emitting the buffer it is
3406
+ * in the process of assembling.
3400
3407
* <p>
3401
3408
* <img width="640" height="320" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/buffer5.png" alt="">
3402
3409
* <dl>
@@ -3424,8 +3431,10 @@ public final Observable<List<T>> buffer(long timespan, TimeUnit unit) {
3424
3431
* Returns an Observable that emits buffers of items it collects from the source Observable. The resulting
3425
3432
* Observable emits connected, non-overlapping buffers, each of a fixed duration specified by the
3426
3433
* {@code timespan} argument or a maximum size specified by the {@code count} argument (whichever is reached
3427
- * first). When the source Observable completes or encounters an error, the resulting Observable emits the
3428
- * current buffer and propagates the notification from the source Observable.
3434
+ * first). When the source Observable completes, the current buffer is emitted, and the event is propagated
3435
+ * to all subscribed {@link Observer}s. Note that if the source {@link Observable} issues an onError
3436
+ * notification the event is passed on immediately without first emitting the buffer it is in the process
3437
+ * of assembling.
3429
3438
* <p>
3430
3439
* <img width="640" height="320" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/buffer6.png" alt="">
3431
3440
* <dl>
@@ -3456,9 +3465,10 @@ public final Observable<List<T>> buffer(long timespan, TimeUnit unit, int count)
3456
3465
* Returns an Observable that emits buffers of items it collects from the source Observable. The resulting
3457
3466
* Observable emits connected, non-overlapping buffers, each of a fixed duration specified by the
3458
3467
* {@code timespan} argument as measured on the specified {@code scheduler}, or a maximum size specified by
3459
- * the {@code count} argument (whichever is reached first). When the source Observable completes or
3460
- * encounters an error, the resulting Observable emits the current buffer and propagates the notification
3461
- * from the source Observable.
3468
+ * the {@code count} argument (whichever is reached first). When the source Observable completes, the
3469
+ * current buffer is emitted, and the event is propagated to all subscribed {@link Observer}s. Note that
3470
+ * if the source {@link Observable} issues an onError notification the event is passed on immediately
3471
+ * without first emitting the buffer it is in the process of assembling.
3462
3472
* <p>
3463
3473
* <img width="640" height="320" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/buffer6.s.png" alt="">
3464
3474
* <dl>
@@ -3490,9 +3500,10 @@ public final Observable<List<T>> buffer(long timespan, TimeUnit unit, int count,
3490
3500
/**
3491
3501
* Returns an Observable that emits buffers of items it collects from the source Observable. The resulting
3492
3502
* Observable emits connected, non-overlapping buffers, each of a fixed duration specified by the
3493
- * {@code timespan} argument and on the specified {@code scheduler}. When the source Observable completes or
3494
- * encounters an error, the resulting Observable emits the current buffer and propagates the notification
3495
- * from the source Observable.
3503
+ * {@code timespan} argument and on the specified {@code scheduler}. When the source Observable completes,
3504
+ * the current buffer is emitted, and the event is propagated to all subscribed {@link Observer}s. Note
3505
+ * that if the source {@link Observable} issues an onError notification the event is passed on immediately
3506
+ * without first emitting the buffer it is in the process of assembling.
3496
3507
* <p>
3497
3508
* <img width="640" height="320" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/buffer5.s.png" alt="">
3498
3509
* <dl>
0 commit comments