One can use errgroup.Group in conjunction with x/sync/semaphore. -s
Nov 5, 2021 17:36:56 Reach John <solitaryre...@gmail.com>: > How to control the number of goroutines when using errgroup? Is there a best > practice? > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/3920c043-787e-439b-b92a-fdbf29555571n%40googlegroups.com[https://groups.google.com/d/msgid/golang-nuts/3920c043-787e-439b-b92a-fdbf29555571n%40googlegroups.com?utm_medium=email&utm_source=footer]. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/692ff3c9-8731-48e2-8939-4b3f90f493a7%40sbinet.org.