Closed Dr-Emann closed 3 years ago
Rather than sending None when we want to close the channel, explicitly close the sending side with drop, which will automatically stop the iteration.
drop
I can't remember why I didn't do this originally, I remember thinking about it, but I didn't get around to actually doing it. Evidently not the happiest block of code I've ever written.
Thanks!
Rather than sending None when we want to close the channel, explicitly close the sending side with
drop
, which will automatically stop the iteration.