Is there a good interop model where you can subscr...
# coroutines
a
Is there a good interop model where you can subscribe to Rx2 Observable & then unsubscribe when the scope is cancelled?
d
Have you looked at
Flow
?
a
More specifically the Rx extensions that give you
Observable.asFlow()
z
You can do
observable.asFlow().collect { }
or
observable.openSubscription().consumeEach { }
, but the former is potentially more efficient
a
thank