Skip to content

Instantly share code, notes, and snippets.

@yenda
Created August 10, 2016 09:48
Show Gist options
  • Save yenda/2ba5c2d9d3f588e4b08e157edb8ccfa8 to your computer and use it in GitHub Desktop.
Save yenda/2ba5c2d9d3f588e4b08e157edb8ccfa8 to your computer and use it in GitHub Desktop.
(def c1 (chan))
(def c2 (chan))
(def xf (map #(repeat 3 %)))
(a/pipeline 4 c2 xf c1)
(a/put! c1 {:name "hello"})
(<!! c2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment