Skip to content

Commit

Permalink
renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
Yu-Jack committed Sep 5, 2022
1 parent 1d717a0 commit 5dd9b47
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion 01-generator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

通常可以拿來做 pipeline 使用,避免一次讀取太大量資料。 其他使用方式還有類似 graceful shutdown 的方法。

參考 [Generator Pattern](./main.go)
參考 [Generator Pattern Example Code](./main.go)

補充: 通常產生 channel 人最好要負責關閉 channel,原因有以下兩點

Expand Down
2 changes: 1 addition & 1 deletion 02-fan-in/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

通常可以拿來做一些限制流量或是想從多個 output 統一收集 input 使用。

參考 [Fan-In Pattern](./main.go)
參考 [Fan-In Pattern Example Code](./main.go)
2 changes: 1 addition & 1 deletion 03-fan-out/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

通常可以拿來當做 Message Queue 使用,從單一 input 散佈到各個地方去。

參考 [Fan-Out Pattern](./main.go)
參考 [Fan-Out Pattern Example Code](./main.go)
2 changes: 1 addition & 1 deletion 04-fan-in-fan-out/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

把以上兩種做一個整合範例,雖然這範例看起來跟直接讀兩個 channel 很像,但實際上同個 target1 channel 是有可能拿到同樣的值的。

參考 [Fan-In and Fan-Out Pattern](./main.go)
參考 [Fan-In and Fan-Out Example Code](./main.go)

0 comments on commit 5dd9b47

Please sign in to comment.