0
点赞
收藏
分享

微信扫一扫

【42】kotlin 协程API

alanwhy 2023-03-10 阅读 59


createCoroutine:创建协程

startCoroutine:启动协程

suspendCoroutine:挂起协程

Continuation接口

运行控制类,负责结果和异常的返回

CoroutineContext接口

运行上下文,持有资源,运行调度

ContinuationInterceptor接口

协程控制拦截器

可用来处理协程调度

举报

相关推荐

0 条评论