Dev Skills
Go·Section 4 of 15 · 5 lessons · about 4 h 45 min

Concurrency in Go (Golang)

The part people come to Go for. Run things at the same time, safely, and stop them when you need to.

  1. 01Goroutines
    Start ten thousand concurrent things with one keyword.
    Graded challenge
  2. 02Channels and select
    Passing values between goroutines safely, and waiting on several at once.
    Graded challenge
  3. 03Mutexes and the race detector
    Sharing state between goroutines without corrupting it.
    Graded challenge
  4. 04Context
    Cancelling work that nobody is waiting for any more.
    Graded challenge
  5. 05Concurrency patterns
    Run once, wait for many, stop on the first error, cap the parallelism, and never leak a goroutine.