Fan-In, Fan-Out
In this lesson, we will get familiar with Fan-In, Fan-Out techniques which are used to multiplex and demultiplex data in Go.
We'll cover the following...
Fan-In refers to a technique in which you join data from multiple inputs into a single entity. On the other hand, Fan-Out means to divide the data from a single source into multiple smaller chunks. In this lesson, we’ll learn how to make use of both these techniques.
The code below is from the previous lesson where two receiving operations were blocking each other.
fmt.Println(<-positionChannel1)
fmt.Println(<-positionChannel2)
These operations were taking turns not only in printing value on to the console but also in proceeding to ...
Access this course and 1400+ top-rated courses and projects.