await blocks until one or more Clojure agents finish their currently queued actions. Pass any number of agent instances; it returns nil after they complete. section 14.6
Wait for several agents
(def a (agent 10000)) (def b (agent 10000)) (send a slow-update) (send b slow-update) (await a b) ;; nil The call waits for both agents. Use await-for instead when a timeout is required; it returns false when the timeout expires.
