When calling a "suspend" method from Java we can u...
# announcements
a
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
use one of the coroutines add-on packages to transform it to an RxJava Flowable or a JDK Flow.Publisher
a
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
There's also the #coroutines channel for flow questions
g
Just call Flow.asPublisher() to convert it to Publisher, which can be easily consumed from Java
a
I’m not sure what you’d adapt it to on the iOS side - some library that implements the reactive streams/observable concept, presumably.