Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
astonex
· 3mo ago · 0 comments
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
Comments
[–]
inigyou
3mo ago
Error 403. Summarize?
[–]
theowaway213456
3mo ago
errgroup has a SetLimit function to control the max number of concurrent go routines running at once.