|
1 | 1 | # RxJava Releases #
|
2 | 2 |
|
| 3 | +### Version 1.2.2 - November 3, 2016 ([Maven](http://search.maven.org/#artifactdetails%7Cio.reactivex%7Crxjava%7C1.2.2%7C)) |
| 4 | + |
| 5 | +Note that the interface `Cancellable` has been moved to `rx.functions` affecting `CompletableEmitter` and the experimental `Observable.fromEmitter(Action1<AsyncEmitter<T>> emitter, AsyncEmitter.BackpressureMode backpressure)` has been removed. |
| 6 | + |
| 7 | +Another important clarification was added to the javadoc about using `SingleSubscriber`: due to the internal enhancements of `Single`, a `SingleSubscriber` is no longer wrapped into a `Subscriber`+`SafeSubscriber` which setup used to call `unsubscribe` on the `SingleSubscriber` yielding `isUnsubscribed() == true` when the source terminated. Therefore, when one extends the class `SingleSubscriber`, the `unsubscribe()` should be called manually to yield the given expecation mentioned before: |
| 8 | + |
| 9 | +``` java |
| 10 | +Subscritpion s = Single.just(1).subscribe(new SingleSubscriber<Integer>() { |
| 11 | + @Override public void onSuccess(Integer t) { |
| 12 | + System.out.println("Success"); |
| 13 | + unsubscribe(); |
| 14 | + } |
| 15 | + |
| 16 | + @Override public void onError(Throwable e) { |
| 17 | + e.printStackTrace(); |
| 18 | + unsubscribe(); |
| 19 | + } |
| 20 | +}); |
| 21 | + |
| 22 | +assertTrue(s.isUnsubscribed()); |
| 23 | +``` |
| 24 | +#### Documentation enhancements |
| 25 | + |
| 26 | +- [Pull 4693](https://github.com/ReactiveX/RxJava/pull/4693): improve `timer` javadoc |
| 27 | +- [Pull 4769](https://github.com/ReactiveX/RxJava/pull/4769): Add note to `SingleSubscriber` doc about unsubscribe invocation in `onSuccess` and `onError`. |
| 28 | + |
| 29 | +#### API enhancements |
| 30 | + |
| 31 | +- [Pull 4725](https://github.com/ReactiveX/RxJava/pull/4725): remove `AsyncEmitter` deprecations |
| 32 | +- [Pull 4757](https://github.com/ReactiveX/RxJava/pull/4757): Add `cache()` to `Single` |
| 33 | + |
| 34 | +#### Performance enhancements |
| 35 | + |
| 36 | +- [Pull 4676](https://github.com/ReactiveX/RxJava/pull/4676): Make identity function a singleton. |
| 37 | +- [Pull 4764](https://github.com/ReactiveX/RxJava/pull/4764): `zip` - check local boolean before volatile in boolean and |
| 38 | + |
| 39 | +#### Bugfixes |
| 40 | + |
| 41 | +- [Pull 4716](https://github.com/ReactiveX/RxJava/pull/4716): fix`subscribe(Action1 [, Action1])` to report `isUnsubscribed` true after the callbacks were invoked |
| 42 | +- [Pull 4740](https://github.com/ReactiveX/RxJava/pull/4740): Error when tracking exception with unknown cause |
| 43 | +- [Pull 4791](https://github.com/ReactiveX/RxJava/pull/4791): Add null check to `Observable.switchIfEmpty` |
| 44 | + |
3 | 45 | ### Version 1.2.1 - October 5, 2016 ([Maven](http://search.maven.org/#artifactdetails%7Cio.reactivex%7Crxjava%7C1.2.1%7C))
|
4 | 46 |
|
5 | 47 | #### API enhancements
|
|
0 commit comments