Skip to content

Commit 400a37b

Browse files
authored
Merge pull request Kotlin#8 from qiaoyuang/master
《协程上下文与调度器》翻译完成
2 parents 733e519 + c8b03a7 commit 400a37b

File tree

2 files changed

+201
-201
lines changed

2 files changed

+201
-201
lines changed

docs/composing-suspending-functions.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ fun main() = runBlocking<Unit> {
408408
suspend fun failedConcurrentSum(): Int = coroutineScope {
409409
val one = async<Int> {
410410
try {
411-
delay(Long.MAX_VALUE) // Emulates very long computation
411+
delay(Long.MAX_VALUE) // 模拟一个长时间的运算
412412
42
413413
} finally {
414414
println("First child was cancelled")
@@ -424,7 +424,7 @@ suspend fun failedConcurrentSum(): Int = coroutineScope {
424424

425425
</div>
426426

427-
> 你可以点击这里[here](../core/kotlinx-coroutines-core/test/guide/example-compose-06.kt)获得完整代码
427+
> 你可以点击这里[这里](../core/kotlinx-coroutines-core/test/guide/example-compose-06.kt)获得完整代码
428428
429429
注意,当第一个子协程失败的时候第一个 `async` 是如何等待父线程被取消的:
430430
```text

0 commit comments

Comments
 (0)