Questions tagged «channels»

6
如何停止goroutine
我有一个goroutine,它调用一个方法,并在通道上传递返回的值: ch := make(chan int, 100) go func(){ for { ch <- do_stuff() } }() 如何停止这种goroutine?
102 go  goroutine  channels 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.