go-concurrency

Installation
SKILL.md

Go Concurrency

Goroutines are cheap; goroutine lifecycle is the hard part. Every goroutine you start owns resources (memory, locks, file descriptors) until it exits.

For the comprehensive reference, see references/concurrency.md.

The single most important rule

Never start a goroutine without knowing when it will stop.

// BAD: leaks if workChan is abandoned
go func() {
    for {
        process(<-workChan)
    }
}()
Related skills
Installs
2
Repository
marsolab/skills
First Seen
3 days ago