mirror of
https://gitee.com/shikong-sk/golang-study
synced 2025-02-22 23:12:15 +08:00
docs: channel
This commit is contained in:
parent
f4636be23b
commit
016c89dfd2
@ -30,7 +30,7 @@ func main() {
|
||||
fmt.Println("goroutine 接收: 等待接收 通道 b 中的值")
|
||||
// 从通道 b 接收一个值
|
||||
t := <-b
|
||||
fmt.Println(t)
|
||||
fmt.Printf("goroutine 接收: %d\n", t)
|
||||
|
||||
wg.Done()
|
||||
}()
|
||||
|
Loading…
Reference in New Issue
Block a user