Skip to content

Instantly share code, notes, and snippets.

@devn

devn/async.cljs Secret

Created April 1, 2014 01:24
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 devn/af570b702f68d31da704 to your computer and use it in GitHub Desktop.
Save devn/af570b702f68d31da704 to your computer and use it in GitHub Desktop.
(let [c (chan)]
(go (while true
(<! (timeout 250))
(>! c 1)))
(go (while true
(<! (timeout 300))
(>! c 2)))
(go (.log js/console (str (<! c)))))
@dahjelle
Copy link

dahjelle commented Jul 2, 2015

I saw your comments on this on IRC…did you ever figure out the Uncaught Error: No protocol method ReadPort.take! defined for type error that you mentioned there?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment