Robuta

https://geektutu.com/post/hpg-exit-goroutine.html 如何退出协程 goroutine (其他场景) | Go 语言高性能编程 | 极客兔兔 Go 语言/golang 高性能编程,Go 语言进阶教程,Go 语言高性能编程(high performance go)。本文介绍了协程没有正常关闭导致内存泄漏的场景,并介绍了如何借助通道/信道(channel) 优雅地退出协程。 goroutine