March 2020
Intermediate to advanced
406 pages
8h 39m
English
Unbuffered channels are the default channel configuration in Go. Unbuffered channels are flexible because they don't need to have a finite channel size definition. They are often best used when the receiver of the data from the channel is slower than the sender of the channel of the data. They also block on both read and write, as they are synchronous. The sender will block the channel until the receiver has received the value. They are often used in conjunction with goroutines to ensure that items are processed in the order that they are expected to be processed in.
In our following example code blocks, we perform the following actions:
Read now
Unlock full access