Need Assistance?

support@tutorialshub.in

Concurrency: Goroutines & Channels

Closing Channels & Worker Pools

ADVERTISEMENT
Go (Golang) Free Lesson
5 min read
ADVERTISEMENT

Always have the sender call close(ch) when no more values will be sent, allowing receivers to loop cleanly with for item := range ch.

ADVERTISEMENT
Hi, I'm Tuby! Here to help you