Re: [ClojureScript] alts!! (and alt!!) still make sense in CLJS when a :default is specified

2014-11-21 Thread Marcus Lewis
Ha, Rich announced "offer!" and "poll!" in today's keynote. http://youtu.be/4KqUvG8HPYo I'm totally going to use (while (poll! my-channel)) unless we also get something like drainTo, as you mention. (The problem with a (go ...) block is that I can't promise my caller than the channel is now r

Re: [ClojureScript] alts!! (and alt!!) still make sense in CLJS when a :default is specified

2014-11-10 Thread Herwig Hochleitner
Your argument makes sense, Javascript's limitation on blocking doesn't apply when wanting to read only available elements. I see little chance to have alt!! added to the cljs port, if it would need a mandatory :default arm there. Also, as Thomas noted, putting the recur into the :default would make

[ClojureScript] alts!! (and alt!!) still make sense in CLJS when a :default is specified

2014-11-09 Thread Marcus Lewis
ClojureScript's core.async doesn't include blocking functions like alts!! and http://groups.google.com/group/clojurescript.