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

  • 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
主站蜘蛛池模板: 富宁县| 申扎县| 桂林市| 海阳市| 友谊县| 石河子市| 阿拉尔市| 徐州市| 岳池县| 河北区| 清远市| 滨海县| 怀集县| 从化市| 澄城县| 永泰县| 马公市| 鄯善县| 枣阳市| 开封市| 邢台县| 荣昌县| 孝义市| 吉林市| 东丽区| 奉节县| 大竹县| 黄龙县| 新营市| 信阳市| 柳江县| 绥德县| 阿克苏市| 碌曲县| 白城市| 新巴尔虎右旗| 麻阳| 福建省| 南充市| 秦皇岛市| 杭州市|