Freaky / Compactor

A user interface for Windows 10 filesystem compression
MIT License
1.16k stars 47 forks source link

Use channel closing rather than sending None explicitly #32

Closed Dr-Emann closed 3 years ago

Dr-Emann commented 4 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.

Freaky commented 3 years ago

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!