-
Notifications
You must be signed in to change notification settings - Fork 350
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
Use awaitSingle
operator instead of awaitFirst
#1355
Use awaitSingle
operator instead of awaitFirst
#1355
Conversation
d4c3cc0
to
93a233e
Compare
93a233e
to
5f3d4fa
Compare
See
In fact, there's (or has been) a subtle change. That being said, we should move to |
Oh ok, mb did't see the were deprecated. Should i open a different mr for using
Also, maybe can you point me to a direction to understand a bit better the potential issue? (Although i kinda get the general concept). |
Feel free to force-push your changes against this pull request. You can find a bug report regarding the problem that arises from too early continuation at spring-projects/spring-framework#25007 |
Operators `awaitFirstXxx` are going to be deprecated. Also, awaitFirst operator has no value on Mono types. Related #25007 Signed-off-by: George Papadopoulos <[email protected]>
5f3d4fa
to
168b145
Compare
The usage of package |
It is intentional to stick with |
Ok, then i think the mr is ok from my side (unless you have some pointers ofc). If i may ask how come we want to stick with |
Some Mono operators send a completion signal on their own upon seeing an element without that the upstream |
Paging @sdeleuze |
I guess this applies in cases such as |
@mp911de I am going to ask to Kotlin team. |
@mp911de So after discussion it looks like they don't plan to change those deprecations on |
Thanks Sebastien. I fully agree with the bugfix as the linked ticket exactly describes the problem and we're happy to switch to |
awaitSingle
operator instead of awaitFirst
A minor refactoring to use
awaitSingleXxx
operators instead ofawaitFirstXxx
.Operators
awaitFirstXxx
are going to be deprecated. Also, awaitFirst operator has no value on Mono types.