Please enable JavaScript.
Coggle requires JavaScript to display documents.
kotlint, Async, exception handling, co-routine - Coggle Diagram
kotlint
async call
promise function, to return value
await to receive value
launch
return a job
co-routines
exception handling
Async
async{}
return a deffer - promise value
promise - await
suspend fun getABC()
val data = async {getABC()}
val data.await()
launch
return a job
void
exception handling
launch - job
khi nào join với main thread mới thấy exception
co-routine
dispatch
determine which thread/thread-pool the coroutines run on
common dispatcher
Main
Default- useful for CPU work
IO
unconfined