📜  kotlin 协程构建器 - Kotlin 代码示例

📅  最后修改于: 2022-03-11 14:53:32.325000             🧑  作者: Mango

代码示例2
launch - Launches new coroutine without blocking
current thread and returns a reference to the coroutine
as a Job.
runBlocking - Runs new coroutine and blocks current
thread interruptible until its completion.
async - Creates new coroutine and returns its future
result as an implementation of Deferred.
withContext - Change a coroutine context for some
block.