3 ms·
I didn't find this surprising enough to be a "gotcha", but I've been living with closures for a while. I tend to use goroutines with actual functions, where I'
by ansible 12y ago
I didn't find this surprising enough to be a "gotcha", but I've been living with closures for a while.
I tend to use goroutines with actual functions, where I'm explicitly passing in all the variables (state) that the goroutine will need.