zl程序教程

您现在的位置是:首页 >  后端

当前栏目

【42】kotlin 协程API

KotlinAPI 协程 42
2023-09-27 14:27:38 时间
  • createCoroutine:创建协程

  • startCoroutine:启动协程

  • suspendCoroutine:挂起协程

  • Continuation接口

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

  • CoroutineContext接口

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

  • ContinuationInterceptor接口

  1. 协程控制拦截器

  2. 可用来处理协程调度