File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class BasicsGuideTest {
25
25
* [ 桥接阻塞和非阻塞的世界] ( #bridging-blocking-and-non-blocking-worlds )
26
26
* [ 等待一个任务] ( #waiting-for-a-job )
27
27
* [ 结构性的并发] ( #structured-concurrency )
28
- * [ 作用域建造器 ] ( #scope-builder )
28
+ * [ 作用域构建器 ] ( #scope-builder )
29
29
* [ 提取函数重构] ( #extract-function-refactoring )
30
30
* [ 协程是轻量级的] ( #coroutines-are-light-weight )
31
31
* [ 像守护线程一样的全局协程] ( #global-coroutines-are-like-daemon-threads )
@@ -89,7 +89,7 @@ Error: Kotlin: Suspend functions are only allowed to be called from a coroutine
89
89
### 桥接阻塞和非阻塞的世界
90
90
91
91
第一个例子中在相似的代码中包含了 _ 非阻塞的_ ` delay(...) ` 和 _ 阻塞的_ ` Thread.sleep(...) ` 。
92
- 它非让容易的让我们看出来哪一个是阻塞的 ,哪一个是非阻塞的。
92
+ 它非常容易的让我们看出来哪一个是阻塞的 ,哪一个是非阻塞的。
93
93
来一起使用明确的阻塞 [ runBlocking] 协程构建器:
94
94
95
95
<div class =" sample " markdown =" 1 " theme =" idea " data-min-compiler-version =" 1.3 " >
@@ -175,7 +175,7 @@ class MyTest {
175
175
### 等待一个任务
176
176
177
177
延迟一段时间来等待另一个协程开始工作并不是一个好的选择。让我们明确地<!--
178
- -->等待(使用非阻塞的方法)一个后台[ Job] 执行结束:
178
+ -->等待(使用非阻塞的方法)一个后台 [ Job] 执行结束:
179
179
180
180
<div class =" sample " markdown =" 1 " theme =" idea " data-min-compiler-version =" 1.3 " >
181
181
You can’t perform that action at this time.
0 commit comments