Skip to content

Commit

Permalink
Update Reactor Core version to 3.1.4.RELEASE
Browse files Browse the repository at this point in the history
Everywhere when we return Mono<Void> and use Mono.zip(...).then()
we will use Mono.when(...).
  • Loading branch information
violetagg committed Feb 15, 2018
1 parent 9e33be5 commit d22208f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ ext {
gradleVersion = '3.3'
gradleScriptDir = "${rootProject.projectDir}/gradle"

reactorCoreVersion = "3.1.4.BUILD-SNAPSHOT"
reactorCoreVersion = "3.1.4.RELEASE"

// Languages
groovyVersion = '2.4.1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public Mono<Void> disposeLater() {
cnsrvlMono = FutureMono.from((Future) cacheNativeServerGroup.terminationFuture());
}

return Mono.zip(clMono, sslMono, slMono, cnclMono, cnslMono, cnsrvlMono).then();
return Mono.when(clMono, sslMono, slMono, cnclMono, cnslMono, cnsrvlMono);
});
}

Expand Down
5 changes: 2 additions & 3 deletions src/main/java/reactor/ipc/netty/tcp/TcpResources.java
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,9 @@ protected void _dispose(){
* @return the Mono that represents the end of disposal
*/
protected Mono<Void> _disposeLater() {
return Mono.zip(
return Mono.when(
defaultLoops.disposeLater(),
defaultPools.disposeLater())
.then();
defaultPools.disposeLater());
}

@Override
Expand Down

0 comments on commit d22208f

Please sign in to comment.