https://kotlinlang.org logo
#coroutines
Title
# coroutines
a

aerb

11/04/2019, 1:23 PM
Is there a good interop model where you can subscribe to Rx2 Observable & then unsubscribe when the scope is cancelled?
d

Dominaezzz

11/04/2019, 1:37 PM
Have you looked at
Flow
?
a

Adam Powell

11/04/2019, 1:42 PM
More specifically the Rx extensions that give you
Observable.asFlow()
z

Zach Klippenstein (he/him) [MOD]

11/04/2019, 5:14 PM
You can do
observable.asFlow().collect { }
or
observable.openSubscription().consumeEach { }
, but the former is potentially more efficient
a

aerb

11/05/2019, 12:55 AM
thank
5 Views