Skip to content

Glossary: Go Beyond the Basics

g.SetLimit(n)

Also written: SetLimit

Caps how many of an errgroup's goroutines run at once. It must be called before the first `g.Go`, which then waits while `n` are running.

Where the book teaches it

Related terms

errgroup