This is the third release of Reactor 3.0. This is a recommended update for all Reactor 3 users.
Update considerations and deprecations
- the RxJava2 adapters have been moved to external project reactor-addons/reactor-adapter
RxJava1Adaptersupport has been dropped in favor of the official rxjava-reactive-stream. SinceRxJava1Adapterwas broken by latest rxjava1 maintenance releases, this might not be considered a hard breaking change.- if you used the test class
TestSubscriberfrom the sources, it has been removed from the public API (renamedAssertSubscriberand placed in test scope until it is removed definitely). Please use theStepVerifierclass in the external project reactor-addons/reactor-tests3.0.3.RELEASEinstead. - the protected field
subscriberinOperators.MonoSubscriberhas been renamedactualto be consistent with the other reactor-core operators. It should only be impacting for users that have implemented their own Mono operators. Flux#then(Publisher<Void>)has been deprecated, use the new namethenEmpty(will be removed in3.1, see #238)Flux#subscribeoverrides with a prefetch parameter have been deprecated in favor of chaining the newlimitRateto other variants (#225)
🐞 Known bugs
- #230 is not entirely fixed: callbacks for
onNextandonCompletecan still be called in wrong order, which impacts thedoOnSuccessoperator.- see discussion in PR #243. workaround: use
doOnNextrather thandoOnSuccess
- see discussion in PR #243. workaround: use
New features and improvements
- new
mergeSequentialandflatMapSequentialoperators (#178)- these allow to eagerly subscribe to the merged publishers, but to keep items emitted by them in order
- new
limitRateoperator (#180)- allows to control the backpressure signal sent to the upstream instead of relying on downstream backpressure signals that may be too high, effectively rate limiting the upstream
- cached schedulers are reset and shutdown upon
setFactory, and are now aSupplier<Scheduler>(#218) - added
subscribevariants with aConsumer<Subscription>callback (#196) - macro and micro optimizations in
Flux(fromStream,thenMany,zip) andMono(when,and,orandthenMany) (#240, #237)
Bug fixes
- don't share doOnSuccess state (#232)
- fix MonoSubscriber fusion logic (#230)
- fix
PeekFuseableSubscriber#pollnot usingOperators.onOperatorError(#205) - cancel
Subscriptionon consumer error (#212) - self Suppression IllegalArgumentException when 'onErrorResume' propagates existing exception (#204)
- make
Schedulershutdown consistent handling with future.cancel(true/false) - do not override subscription with a cancelled one (#202)
- various fixes synchronized from reactive-streams-commons (#215)
- improves error handling for flow with doOnError and subscribe (#190)
Various changes
- various code cleanups and javadoc improvements
- increased test coverage
- a first step in the direction of harmonizing Flux and Mono
thenXXXAPIs (#238, #198) - exported IntelliJ inspection profile, renamed code style configuration in
/codequality/idea - ring buffer code missing attribution to https://lmax-exchange.github.io/disruptor/ (#229)
- reduce logging level used in Hooks.onXX (#213)
- use
j.u.ObjectsinSignalequalsandtoString
Thanks to the following contributors that also participated to this release 👍 : @dfeist @poutsma @snicoll @akarnokd