Re:Why you can have millions of goroutines but only thousand...
by majewsky on Tuesday October 09, 2018 @05:12AM
(#18174378)
`for { continue }` is semantically equivalent to `for {}` since the closing bracket of the loop block implies a `continue`.
As a sibling correctly notes, `select {}` is what you want to do instead. You need to do something that can block the goroutine in such a way that control returns to the scheduler. Selecting is one of those ways.
As a sibling correctly notes, `select {}` is what you want to do instead. You need to do something that can block the goroutine in such a way that control returns to the scheduler. Selecting is one of those ways.