Skip to content

Instantly share code, notes, and snippets.

@shayanjm
Created March 1, 2016 20:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shayanjm/6301cad1d64191b8ecad to your computer and use it in GitHub Desktop.
Save shayanjm/6301cad1d64191b8ecad to your computer and use it in GitHub Desktop.
(def consumer-thread (future (while true (let [msg (take 1 msgs)]
(swap! message-log conj msg)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment