How to halt errGroup goroutines when the first error happens

前端 未结 0 1937
情话喂你
情话喂你 2020-12-15 02:38

Let\'s say I have an errgroup.Group called eg that calls multiple goroutines with

eg.Go(func() error {
    // do work
})


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题