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

antonioleiva

05/31/2017, 7:44 AM
🤔 not sure about the difference between
launch(UI)
and
async(UI)
tbh, but worth trying
l

louiscad

06/03/2017, 11:29 PM
antonioleiva: launch returns
Unit
while
async
returns a
Deffered
on which you can call
await()
from a coroutine. I use
async
for methods in a Repository, so the UI code using it can await for completion without blocking UI thread in coroutines
4 Views