Skip to content

Instantly share code, notes, and snippets.

@mattdeboard
Created September 28, 2013 19:22
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 mattdeboard/6745533 to your computer and use it in GitHub Desktop.
Save mattdeboard/6745533 to your computer and use it in GitHub Desktop.
(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