Goroutines

Learn about Goroutines in Go.

What are goroutines

For most intents and purposes goroutines can be thought of as lightweight threads. They’re quick to start, initially use only 2kb of stack memory (which can grow or shrink). They’re managed by the Go runtime (rather than the operating system) and context switching between them is ...