-
Notifications
You must be signed in to change notification settings - Fork 128
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
Confused about Multi.asFlow
extension
#1316
Comments
/cc @heubeck |
Thank you for pointing this out, @hantsy. Will have a look and probably propose a refactoring. |
The JDK9 extension also includes a |
lets follow up on this discussion in #1325 |
Issue #1316: Kotlin - Remove unnecessary suspend modifier from asFlow and Uni builder
Kotlinx coroutines Reactive includes an general extension fun to convert
Publisher
to Kotlin Flow, https://github.com/Kotlin/kotlinx.coroutines/blob/master/reactive/kotlinx-coroutines-reactive/src/ReactiveFlow.ktBesides add extensions to general ReactiveStreams API, https://github.com/Kotlin/kotlinx.coroutines/tree/master/reactive it also supports Reactor, Rxjava2/3, JDK 9 Flow API.
But in these implementations, it does requires a
suspend
modifier for fun.asFlow
.The text was updated successfully, but these errors were encountered: