smallrye / smallrye-mutiny

An Intuitive Event-Driven Reactive Programming Library for Java
https://smallrye.io/smallrye-mutiny
Apache License 2.0
814 stars 127 forks source link

Refactor `Uni.awaitSuspending` #1317

Open hantsy opened 1 year ago

hantsy commented 1 year ago

Follow the existing extension modules from https://github.com/Kotlin/kotlinx.coroutines/tree/master/reactive, add Uni.awaitSingle() and Uni.awaitSingleOrNull instead, the naming is more clear and easy migrated from other ReactiveStreams/JDK9 Flow impls.

heubeck commented 1 year ago

lets follow up on this discussion in https://github.com/smallrye/smallrye-mutiny/issues/1325