What is the difference between launch/join and async/await in Kotlin coroutines

前端 未结 8 2125
闹比i
闹比i 2020-11-30 17:17

In the kotlinx.coroutines library you can start new coroutine using either launch (with join) or async (with await<

8条回答
  •  温柔的废话
    2020-11-30 17:48

    I find this guide https://github.com/Kotlin/kotlinx.coroutines/blob/master/coroutines-guide.md to be useful. I will quote the essential parts

提交回复
热议问题