ClojureScript's core.async doesn't include blocking functions like alts!!
and <!!. This generally makes sense, but not always.

For example, when an error occurs, I think it's sometimes appropriate to
drain a channel without closing it. I want to do this:
    (loop []
        (alt!!
          my-channel ([_] (recur))
          :default :channels-are-drained))

But instead I'm forced to use alt!, which has to be called from a (go ...)
block, which is an arbitrary limitation since this code will never block.

Thoughts?

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to