-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release 1.1.7 preparations #4149
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version 1.1.7 - July 10, 2016 (Maven)
This release has several documentation fixes (
AsyncSubject
,doOnEach
,cache
,scan
,reduce
, backpressure descriptions) and internal cleanups based on tool feedback (code-coverage and PMD).Warning: behavior change in the time-bound
replay()
operator: the aging of the values continues after the termination of the source and thus late subscribers no longer get old data. For example, a givenjust(1).replay(1, TimeUnit.MINUTE)
a subscriber subscribing after 2 minutes won't get1
but onlyonCompleted
.Warning: behavior change in
timestamp()
andtimeInterval()
(no arguments) operators: they now take timing information from thecomputation
scheduler instead of theimmediate
scheduler. This change now allows hooking these operators' time source.Warning: the parameter order of
Completable.subscribe(onError, onComplete)
has been changed toCompletable.subscribe(onComplete, onError)
to better match the callback order in the other base reactive classes, namely the most significant signal comes first (Observer.onNext
,SingleSubscriber.onSuccess
, and nowCompletableSubscriber.onCompleted
).The new RxJavaHooks API
PR #4007 introduced a new way of hooking into the lifecycle of the base reactive types (
Observable
,Single
,Completable
) and theScheduler
s. The originalRxJavaPlugins
' design was too much focused on class-initialization time hooking and didn't properly allow hooking up different behavior after that. There is areset()
available on it but sometimes that doesn't work as expected.The new class
rx.plugins.RxJavaHooks
allows changing the hooks at runtime, allowing tests to temporarily hook onto an internal behavior and then un-hook once the test completed.It is now also possible to override what
Scheduler
s theSchedulers.computation()
,.io()
and.newThread()
returns without the need to fiddle withSchedulers
' own reset behavior:By default, all
RxJavaHooks
delegate to the originalRxJavaPlugins
callbacks so if you have hooks the old way, they still work.RxJavaHooks.reset()
resets to this delegation andRxJavaHooks.clear()
clears all hooks (i.e., everything becomes a pass-through hook).API enhancements
withLatestFrom
operators.Subscription
s to composite subscription.distinctUntilChanged
with direct value comparator - alternative.AsyncCompletableSubscriber
that exposesunsubscribe()
.TestObserver
, enhanceTestSubscriber
a bit.groupBy
overload withevictingMapFactory
Completable.subscribe(onError, onComplete)
to(onComplete, onError)
API deprecations
TestObserver
, enhanceTestSubscriber
a bit.RxJavaPlugins
methods).Performance enhancements
map()
andfilter()
to implementOnSubscribe
directly.Bugfixes
Completable.onErrorComplete(Func1)
not relaying function crash.ReplaySubject
anomaly around caughtUp by disabling that optimization.The text was updated successfully, but these errors were encountered: