lab008

command
v0.0.0-...-f10d331 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 2 Imported by: 0

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

运行结果

Imgur

资料

https://gobyexample.com/closing-channels

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL