Skip to content

Instantly share code, notes, and snippets.

@halgari halgari/gist:6382422
Created Aug 29, 2013

What would you like to do?
(def c (chan))
(defn drain [c]
(loop [col []]
(if-let [v (<! c)]
(recur (conj col v))
(let [s (<! (drain c))] something...))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.