Closed hiqsociety closed 1 year ago
Why would the ipAddrString
be empty?
@panjf2000 will the value of ipAddrStr change?
what about this?
func main() { ... //ipAddr
ants.Submit(func() { somefunc2(ipAddr.String()) }) }
func somefunc2(ipAddrStr string) { ants.Submit(func() { somefunc(ipAddrStr) }) }
Again, why would the value change? I don't get your point.
@panjf2000 maybe it's my code. thank you for the verification! it's mix and matching other go routines. i'll just use yours. thx!
Questions with details
is this ok? will ipAddrStr be sent inside ants.Submit's somefunc()? i'm worried if ipAddrString will be "" is the below the right way to do it?
Code snippets (optional)
No response