golang channel是线程安全的吗

如果把线程安全定义为允许多个goroutine同时去读写,那么golang 的channel 是线程安全的。不需要在并发读写同一个channe时加锁。

原文地址:https://www.cnblogs.com/peteremperor/p/14469846.html