typeover
curriculum

Curriculum Concurrency Goroutines exercise 5 · fill-word

Goroutines

The ${word} keyword can also be used with anonymous functions — the most common pattern when you want to capture variables from the enclosing scope. Type the keyword.

TypeScript reference
Fill the blanks →

About this theme

go fn() runs fn concurrently with the caller. That's it. No promises, no async/await, no event loop — the runtime multiplexes goroutines over OS threads. Cheap to start (kilobytes of stack). And the discipline: never start a bare goroutine whose lifetime you can't reason about.