cancelAndJoin

suspend fun CoroutineScope.cancelAndJoin()(source)

取消并等待协程作用域的根 Job 完成,等价于 scope.coroutineContext.job.cancelAndJoin()