A go block returns a channel that receives the value of its body. Waiting on that channel is the synchronization point: the printer does not run until the worker finishes.
go
(require '[clojure.core.async :as async]) (println (async/<! (async/go (println "working") "done")))
The body's result is the string done.
done
$ glj channel-synchronization.glj working done
Next example: Select.
A hands-on tour in the style of Go by Example. Glojure is a Clojure interpreter hosted on Go.