Skip to content

Instantly share code, notes, and snippets.

@cataska
Created September 24, 2018 02:01
Show Gist options
  • Save cataska/eaf9247f90c1204cece8d0f62a7dd497 to your computer and use it in GitHub Desktop.
Save cataska/eaf9247f90c1204cece8d0f62a7dd497 to your computer and use it in GitHub Desktop.
(def ch (chan)) ;; ==> Create channel
(take! ch #(println "Got a value:" %))
;; => Take value from channel, Asynchronously
(put! ch 42) ;; => Asynchronously put value from channel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment