Skip to content

Instantly share code, notes, and snippets.

@noisesmith
Created February 25, 2017 01:05
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 noisesmith/2f85a37c9f340ff21a14e00012737b78 to your computer and use it in GitHub Desktop.
Save noisesmith/2f85a37c9f340ff21a14e00012737b78 to your computer and use it in GitHub Desktop.
using core.async in lumo via andare
justin@S: ~/.config-git/deleteme/deleteme$ lumo -c ~/.m2/repository/andare/andare/0.5.0/andare-0.5.0.jar
Lumo 1.1.0
ClojureScript 1.9.456
Docs: (doc function-name-here)
Exit: Control+D or :cljs/quit or exit
cljs.user=> (require-macros '[cljs.core.async.macros :as >>])
nil
cljs.user=> (require '[cljs.core.async :as >])
nil
cljs.user=> (def c (>/chan))
#'cljs.user/c
cljs.user=> (>>/go (println "read via async:" (>/<! c)))
#object[cljs.core.async.impl.channels.ManyToManyChannel]
cljs.user=> (>>/go (>/>! c :foo))
#object[cljs.core.async.impl.channels.ManyToManyChannel]
cljs.user=> read via async: :foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment