This lesson explains in detail the use of the select statement in Go, it's default case and concept of timeout

We'll cover the following

Select Statement

The select statement lets a goroutine wait on multiple communication operations.

A select blocks until one of its cases can run, then it executes that case. It chooses one at random if multiple are ready.


Get hands-on with 1200+ tech skills courses.