← 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 04

Channels Are Typed Queues

A channel is a typed, goroutine-safe queue. Send with ch <- value, receive with value := <-ch. Channels can be buffered (non-blocking up to capacity) or unbuffered (sender blocks until receiver is ready). They are the idiomatic way to share data between goroutines.

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