Hi everyone
I have a simple question about go routines.
So I have a function like this
Func1() {
for n := range array {
go fun2()
}
}
So as I can not make sure array has a fix size, then I cannot control go
routines number. Does any one have some elegant ways that I can limit this
function1 create fix number go routines?
Best
Joseph
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/CABp8xEm6FRU4oms8yuV1rqUDcrShvs-7%2B-M9L-JTqXKNGZShNw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.