-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Mono Kotlin extensions and functions fixes #1475
Conversation
This commit renames MonoWhenFunctions to MonoFunctions since it also contains a zip function. This should not break compatibility since imports are using only package and function name. It also removes some inconsistent and duplicated tests.
The Kotlin extension and function need to be consistent with their Java counterparts and should be usable on Publisher<*> not just Publisher<Void>.
Codecov Report
@@ Coverage Diff @@
## master #1475 +/- ##
============================================
- Coverage 84.16% 84.11% -0.06%
+ Complexity 3907 3896 -11
============================================
Files 359 359
Lines 29760 29790 +30
Branches 5527 5522 -5
============================================
+ Hits 25048 25057 +9
- Misses 3083 3096 +13
- Partials 1629 1637 +8
Continue to review full report at Codecov.
|
reactor-core/src/test/kotlin/reactor/core/publisher/MonoFunctionsTests.kt
Outdated
Show resolved
Hide resolved
reactor-core/src/test/kotlin/reactor/core/publisher/MonoFunctionsTests.kt
Outdated
Show resolved
Hide resolved
reactor-core/src/test/kotlin/reactor/core/publisher/MonoExtensionsTests.kt
Outdated
Show resolved
Hide resolved
@bsideup I think I have taken in account all your remarks. |
11a35cc
to
d3bbe1b
Compare
d3bbe1b
to
b256b2a
Compare
I have made other changes to preserve backward compatibility with |
@@ -162,7 +162,7 @@ class FluxExtensionsTests { | |||
StepVerifier | |||
.create(IOException() | |||
.toFlux<String>() | |||
.onErrorResume(IOException::class, { "foo".toMono() })) | |||
.onErrorResume(IOException::class) { "foo".toMono() }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you please improve the readability of this one as well? (as you did here)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(I did the update)
whenComplete
alias working onPublisher<*>
not justPublisher<Void>