官术网_书友最值得收藏!

Channels and Messages

In Chapter 2, Understanding Goroutines, we looked at how goroutines work, how to use them in a concurrent fashion, and some of the common mistakes that might occur. They were simple to use and reason about, but they were limited because they are able to spawn other goroutines and wait on system calls. In reality, goroutines are more capable than what was shown in the previous chapter, and to uncover their full potential we need to understand how to use channels, which is the aim of the current chapter. Here, we will look at the following topics:

  • Controlling parallelism
  • Channels and data communication
  • Types of channels
  • Closing and multiplexing channels
主站蜘蛛池模板: 英超| 屯昌县| 宜君县| 滨州市| 库尔勒市| 长岛县| 石楼县| 佛学| 仙居县| 文水县| 石景山区| 灯塔市| 南通市| 奈曼旗| 莱西市| 永康市| 泰和县| 高平市| 游戏| 岐山县| 眉山市| 曲麻莱县| 沾化县| 筠连县| 乾安县| 从江县| 九江县| 麻阳| 麻阳| 乌拉特中旗| 象山县| 镇康县| 莲花县| 永昌县| 丰县| 当雄县| 宜昌市| 富裕县| 上蔡县| 西青区| 沿河|