Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by astonex

2 hours 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

2 comments

astonex

Reply

inigyou  1 hour ago

Error 403. Summarize?

  • theowaway213456  1 hour ago

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

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities