Hacker News new | ask | show | jobs
by astonex 1 day ago
There is actually a way to do this with errgroup provided you can work with func() error signature

https://pkg.go.dev/golang.org/x/sync/errgroup#Group.SetLimit

1 comments

Error 403. Summarize?
errgroup has a SetLimit function to control the max number of concurrent go routines running at once.