command
Version:
v0.0.0-...-f10d331
Opens a new window with list of versions in this module.
Published: Dec 8, 2023
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
closing channels
Closing a channel indicates that no more values will be sent on it. This can be useful to communicate completion to the channel’s receivers.
NOTICE
- 两个条件都满足的情况下,1是channel被close了,2是channel里面的数据都读取receive掉了。
这时候more就会返回true
运行结果

资料
https://gobyexample.com/closing-channels
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.