Full Discussion (Custom range iterators in Go)

Don't do that: if you break from the loop before hitting the end of the range, then you will leak the goroutine.

code of conduct - report abuse