6 ms·
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
by astonex 2mo 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 https://pkg.go.dev/golang.org/x/sync/errgroup#Group.SetLimit
- inigyou 2mo agoError 403. Summarize?
- theowaway213456 2mo agoerrgroup has a SetLimit function to control the max number of concurrent go routines running at once.