This version updates to support RxJava 3. No functional changes.
The groupId and package name are now com.jakewharton.rx3
.
- New:
createWithDefault
factory for supplying a default cached value. Currently, the first subscriber has to wait for the upstream source to emit. By specifying a default value you can deliver a value immediately upon subscribe in a way similar to that if an event from another subscriber had already been cached. - New: Annotate public API surface with nullability annotations.
- Fix: Do not emit cached value if the subscriber immediately disposes/cancel subscription.
- Fix: Clear cached value when upstream emits a terminal event.
- Fix: Kotlin extension functions now return non-nullable types instead of platform types.
This version only supports RxJava 2.
- New: Support for both
Observable
andFlowable
.
Note: There is a 2.0.0 version which uses the com.jakewharton.rx
group ID instead of com.jakewharton.rx2
.
You should use the latter to ensure 1.x and 2.x can be used side-by-side in the same module.
- Fix: Reduce allocations and memory overhead.
Initial release.