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

Pratik Tandel

01/11/2021, 5:47 PM
A somewhat trivial question but i couldn’t find a straightforward answer by googling; what’s the best way to convert one of the many Rx / Reactive types to a coroutine? Things like
Single
,
Flowable
etc
g

Guillermo Alcantara

01/11/2021, 5:48 PM
p

Pratik Tandel

01/11/2021, 5:48 PM
i see; so just add the extension function and call
await
?
g

Guillermo Alcantara

01/11/2021, 5:48 PM
yes
p

Pratik Tandel

01/11/2021, 5:49 PM
cool thanks! and are there different packages for rx3 and reactivex ?
neat looks like yes!
actually still can’t seem to figure out a way to await on
io.reactivex.Single
@Guillermo Alcantara the conversions only allow from Publisher
3 Views