Skip to content

Commit

Permalink
Update 14.9.md (unknwon#539)
Browse files Browse the repository at this point in the history
14.9 实现 Futures 模式 InverseFuture()定义没有返回值
  • Loading branch information
crackedcd authored and unknwon committed Sep 7, 2018
1 parent e19f2a9 commit 1a8952b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eBook/14.9.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func InverseProduct(a Matrix, b Matrix) {
`InverseFuture`函数起了一个`goroutine`协程,在其执行闭包运算,该闭包会将矩阵求逆结果放入到future通道中:

```go
func InverseFuture(a Matrix) {
func InverseFuture(a Matrix) chan Matrix {
future := make(chan Matrix)
go func() {
future <- Inverse(a)
Expand All @@ -44,4 +44,4 @@ func InverseFuture(a Matrix) {

- [目录](directory.md)
- 上一节:[惰性生成器的实现](14.8.md)
- 下一节:[复用](14.10.md)
- 下一节:[复用](14.10.md)

0 comments on commit 1a8952b

Please sign in to comment.