Re: [go-nuts] Managing perpetually running goroutines

2021-09-02 Thread Sanyia Saidova
Awesome, thanks so much for the help here! Learned a lot from the input and code examples. :) Much appreciated! On Thu, 2 Sep 2021, 15:49 Bryan C. Mills, wrote: > On Wed, Sep 1, 2021 at 5:55 PM wrote: > >> Thanks Bryan, especially for the code example. >> >> >> Would using a sync.WaitGroup in

Re: [go-nuts] Managing perpetually running goroutines

2021-08-30 Thread Sanyia Saidova
Appreciated, thanks Brian and Ian. On the subject of sync.WaitGroups, I haven't tackled this yet for my use case, but will use the opportunity to brainstorm some options, if that's okay. I want to be able to terminate each worker independently of others (i.e. close on worker, wait for it to finish