-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Request awaitSingleOrNull
for reactive
#2088
Comments
Also related to #2079 |
Hi @JasonMing! In fact, a method with that same name has been present for a while as an extension on arbitrary Maybe this method could be added with another name, like |
Hi @dkhalanskyjb! This issue seems has been obsoleted after kotlinx.coroutines 1.4.0 released at 27 Oct 2020. |
This issue being obsoleted will become obsoleted after kotlinx.coroutines 1.5.0, as we plan to remove |
ok👌 |
kotlin-coroutines
awaitSingle()
can assert the Flux contains one and only one element and returning first element.But seems there is no operators can assert the Flux contains zero or one element, i.e.,
awaitSingleOrNull()
.The text was updated successfully, but these errors were encountered: