4 ms·
> 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 probab
by jy3 6y 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 https://pkg.go.dev/golang.org/x/sync/semaphore