3 ms·
Have the things in the channel be the equivalent of C#'s IDisposable or something, then the goroutine can clean them up itself.
by SamReidHughes 13y ago
Have the things in the channel be the equivalent of C#'s IDisposable or something, then the goroutine can clean them up itself.
- pjmlp 13y agoHave you read pcwalton example? How can the goroutine clean them if it is dead?
- SamReidHughes 13y agoSorry, the words coming out of my fingers didn't match the thought in my mind. The channel can dispose of them.