Curriculum Concurrency Goroutines exercise 3 · mcq
Goroutines
A goroutine you launch in main() runs concurrently with
main(). What happens to in-flight goroutines when main()
returns?
TypeScript reference
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.