When calling a "suspend" method from Java we can use CompletableFuture, is there a similar Java counterpart when calling a method that returns a Flow<>?
a
araqnid
09/21/2020, 8:58 PM
use one of the coroutines add-on packages to transform it to an RxJava Flowable or a JDK Flow.Publisher
a
Alberto
09/21/2020, 9:02 PM
Will take a look, do you happen to have any samples to share?
I should have probably asked this question in the multiplatform channel, but how would it work calling from iOS side?
z
Zach Klippenstein (he/him) [MOD]
09/21/2020, 10:49 PM
There's also the #C1CFAFJSK channel for flow questions
g
gildor
09/22/2020, 2:17 AM
Just call Flow.asPublisher() to convert it to Publisher, which can be easily consumed from Java