This is the source code used for my presentation Intro to core.async for the Sydney Clojure User Group, July 2013
You will need Leiningen 2.0 or above installed.
First, compile all clojurescript:
lein cljsbuild once
or
lein cljsbuild auto
Then, start the web server:
lein ring server
And navigate to http://localhost:3000/
cljsexample.clj
src-cljs/main.cljs
as well as the templates coreasync-1.html
and coreasync-2.html
Example 2 has a pure javascript for comparison purposes at js-core-async.js
Example 1 is a port of Rob Pike's talk Go Concurrency Patterns and Example 2 was taken from David Nolen's post Communicating Sequential Processes.
Copyright © 2013 Leonardo Borges