4

Go の非同期チャネルに残っているストレージの量を確認する方法はありますか?

例えば

a chan uint=make(chan bool, 5)
a<-true
fmt.Printf(a.capazity())
4

1 に答える 1