Kotlin协程中launch/join和async/await有什么区别 [英] What is the difference between launch/join and async/await in Kotlin coroutines

查看:1879
本文介绍了Kotlin协程中launch/join和async/await有什么区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

kotlinx.coroutines库中,您可以使用launch(带有join)或async(带有await)启动新协程.它们之间有什么区别?

In the kotlinx.coroutines library you can start new coroutine using either launch (with join) or async (with await). What is the difference between them?

推荐答案

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆