Go语言实践技巧(11)——unbuffered channel

下列两种方式创建的都是unbuffered channel

ch = make(chan int)

ch = make(chan int, 0)

发表评论

邮箱地址不会被公开。 必填项已用*标注

This site uses Akismet to reduce spam. Learn how your comment data is processed.