Skip to content

Commit

Permalink
修改翻译错误
Browse files Browse the repository at this point in the history
  • Loading branch information
themoonbear committed Apr 22, 2019
1 parent 268678a commit c540fbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eBook/chapter10/10.7.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

很快您就会看到,Go 中的工作池用 **缓冲通道** 来实现的,因为它允许您限制同时执行的 goroutines 数量。

接下来的程序 `workPool.go` 分为五部分来介绍。这个程序实现一个简单的任务:它将处理整数并打印它们的平方,使用一个单独 goroutine 来服务每个请求。尽管 `workerPool.go` 的简单有误导性,但这个程序的 Go 代码可以作为一个实现非常困难任务的模版来方便使用
接下来的程序 `workPool.go` 分为五部分来介绍。这个程序实现一个简单的任务:它将处理整数并打印它们的平方,使用一个单独 goroutine 来服务每个请求。尽管 `workerPool.go` 比较简单,但是它基本可以作为实现更复杂任务的程序模板

> 这是一个高级技巧,它能帮您在 Go 中使用 goroutines 创建服务进程来接收并服务多个客户端!
Expand Down

0 comments on commit c540fbc

Please sign in to comment.