Join Slack
Powered by
I've got three functions that I want to call async...
# announcements
t
Tsvetozar Bonev
01/18/2019, 10:15 AM
I've got three functions that I want to call asynchronously, do I have to make them suspended or can I just run three async blocks?
d
Dico
01/18/2019, 10:59 AM
suspend functions are not automatically asynchronous. Concurrency is explicit in kotlin. You can use
GlobalScope.launch
, although I would recommend adding your application lifecycle to the coroutine context.
Dico
01/18/2019, 11:01 AM
Scrap that, I mean component lifecycle
2
Views
Open in Slack
Previous
Next