← Back to /go/

Goroutines and channels — the Go concurrency model explained_

Go's concurrency model is simple in principle and powerful in practice. Here is how to think about it.

By: dave_runtime Apr 03, 2026 5 posts
#5 Apr 06

select for Multiple Channels

The select statement waits on multiple channel operations simultaneously, like a switch for channels. This is how you implement timeouts (select with time.After), cancellation (select with a done channel), and fan-in (merge multiple channels into one). Learn select early.

By: carol_null Apr 06, 2026 18:39
[1] [2] Page 2 of 2 (5 posts)
5 posts in this thread [+] Reply