On Saturday, 16 January 2021 at 16:28:59 UTC Pete Wilson wrote:

> In short, what I want to do is to have a controller goroutine (main) plus 
> some number of worker goroutines
>

This doesn't answer your question, but if you haven't seen it already I 
recommend this video about concurrency patterns in go:
https://www.youtube.com/watch?v=5zXAHh5tJqQ
 
All of it is well worth watching, but an example of using a semaphore 
channel instead of a worker pool starts at 32:15.

-- 
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/7ccb2318-ca99-4670-8632-bd87fe56867an%40googlegroups.com.

Reply via email to