Hacker News new | ask | show | jobs
by jy3 1935 days ago
> There are a number of patterns to limit the number of goroutines, and none of them are exactly easy. A simple example might be something like:

This is probably what the author was looking for https://pkg.go.dev/golang.org/x/sync/semaphore