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

Konstantin Petrukhnov

10/05/2018, 11:51 AM
Is there example of other example? E.g. when coroutines help, and that not involve running same task with different data (sequentially/async)?
e

Egor Trutenko

10/05/2018, 11:52 AM
Basically, you can use coroutines anywhere where you use Rx or Android AsyncTask, that's pretty much all their purpose
l

lukaswelte

10/05/2018, 11:52 AM
E.g. in a http service, you might want to fetch data from other data sources (over http or tcp, like DB or other services). When you want to do this in parallel coroutines can come in very handy
4 Views