I have a goroutine that calls a method, and passes returned value on a channel:
ch := make(chan int, 100) go func(){ for { ch <- do_stuff() } }()

How do I stop such a goroutine?

Write your answer...

Never miss a post from Chris Gregori, when you sign up for Ednsquare.