Created
September 28, 2013 19:22
-
-
Save mattdeboard/6745533 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defmacro go-handle! [update-ch & body] | |
"Execute `body' inside goroutine, then send data to channel `update-ch'." | |
`(cljs.core.async.macros/go | |
(do ~@body) | |
(cljs.core.async/>! ~update-ch 1))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment