geektutu / blog

极客兔兔的博客,Coding Coding 创建有趣的开源项目。
https://geektutu.com
Apache License 2.0
166 stars 21 forks source link

Go Context 并发编程简明教程 | 快速入门 | 极客兔兔 #82

Open geektutu opened 4 years ago

geektutu commented 4 years ago

https://geektutu.com/post/quick-go-context.html

WaitGroup 和信道(channel)是常见的 2 种并发控制的方式。但是对于复杂的并发场景,Context 上下文是更优雅的控制方式。Context 提供了 WithCancel(取消)、WithValue(传值)、WithTimeout(超时机制)、WithDeadline(截止时间)等4种并发控制的方式。

EddieChan1993 commented 2 years ago

很不错,希望博主能干持续维护,同时特别强调,高性能那个模块,希望博主能够持续更新