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

  • Distributed Computing with Go
  • V.N. Nikhil Anurag
  • 113字
  • 2021-06-24 18:36:13

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
主站蜘蛛池模板: 贵州省| 城步| 阿拉善右旗| 洪雅县| 泌阳县| 张家口市| 钟山县| 藁城市| 汕尾市| 巍山| 汤原县| 金沙县| 华阴市| 喀喇沁旗| 额济纳旗| 苏州市| 万宁市| 乌鲁木齐市| 平度市| 商水县| 永仁县| 合江县| 娄底市| 华坪县| 湘潭县| 东兰县| 璧山县| 中方县| 婺源县| 道孚县| 会泽县| 平江县| 罗源县| 正镶白旗| 克拉玛依市| 阆中市| 南昌市| 房产| 永寿县| 上饶市| 灵台县|