TechGuild
1Level 1, Curious Newcomer

Goroutines, channels and select

A goroutine is cheap, a channel is a typed queue with blocking semantics, and select is how you wait on several things at once. This lesson covers the primitives, the closing rules, why break does not leave a for/select loop, and the fact that Go only detects a deadlock when everything is stuck.

12 min readintermediate

Sign in to read this lesson

This lesson is part of Concurrency and IO, which a free account opens. The orientation module of every course reads without one.

An account is free. There is no paid plan, no tier and nothing to buy.