5. Closing Channels in Go
ch := make(chan int)
// do some stuff with the channel
close(ch)Checking If a Channel Is Closed
v, ok := <-chDon't Send on a Closed Channel
Assignment
Solution
Explanation
What is inside numSentCh?
numSentCh?Is the channel like an array?
What is v?
v?Example of What’s Actually Happening
What countReports sees
countReports sees