Skip to content

Commit

Permalink
Update 10.7.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hantmac committed Apr 18, 2019
1 parent 9ef46a7 commit 5dc62e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eBook/chapter10/10.7.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,6 @@ f2(): context canceled
f3(): context canceled
```

输出较长的行是 `time.After()` 函数调用的返回值。它们代表程序正常操作。这的要点是程序的操作在执行中有延误时是被取消的
输出较长的行是 `time.After()` 函数调用的返回值。它们代表程序正常操作。意味着如果该程序执行超时就会立刻被取消

这与使用 `context` 包一样简单,因为介绍的代码没有对 `Context` 接口做任何重要的工作。不过,下节的 Go 代码将介绍一个更真实的例子。
这与使用 `context` 包一样简单,因为介绍的代码没有对 `Context` 接口做任何重要的工作。不过,下节的 Go 代码将介绍一个更真实的例子。

0 comments on commit 5dc62e2

Please sign in to comment.