Van Tran

34%
Flag icon
Instead, all channel reads and writes are considered simultaneously3 to see if any of them are ready: populated or closed channels in the case of reads, and channels that are not at capacity in the case of writes. If none of the channels are ready, the entire select statement blocks. Then when one the channels is ready, that operation will proceed, and its corresponding statements will execute.
Concurrency in Go: Tools and Techniques for Developers
Rate this book
Clear rating
Open Preview