core-async

2019-02-19T18:36:50.045200Z

often instead of a dedicated stop chan it suffices to check if your input channel has been closed - that's a condition that you should handle with a graceful exit from the loop regardless

👍 1
2019-02-19T18:37:50.046300Z

(of course that doesn't apply when you don't have an input channel, but I find looping without an input chan or at least an output chan is rare -- output channels similarly should trigger exit of your loop if closed)