Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BufferedChannel ¶
func BufferedChannel()
func SelectChannel ¶
func SelectChannel()
select默认是阻塞的,只有当监听的channel中有发送或接收可以进行时才会运行。
当多个channel都准备好的时候,select是随机的选择一个执行的。
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.