matthiasn / systems-toolbox

Tools and building blocks for building Systems in Clojure and ClojureScript
Eclipse Public License 1.0
174 stars 23 forks source link

msg-handler-loop question #9

Closed batwicket closed 9 years ago

batwicket commented 9 years ago

Just curious why you aren't using an alts! to listen on messages in msg-handler-loop.

matthiasn commented 9 years ago

Sure. In my understanding, alts! would complete at most one of multiple channel operations that are ready, which here would be channels to take from. Since the two channels used here have such different characteristics, I also find it cleaner to completely separate the handlers for each type of channel.

matthiasn commented 9 years ago

I'll close this for now, but feel free to re-open anytime when you have more questions. I'm happy to discuss any aspect of the library. Cheers