Changes for clojure.core/await

zkim on Sun, 26 Sep 2010
(def *agnt* (agent {}))

user=> (send-off *agnt* (fn [state] 
                          (Thread/sleep 10000)
                          (assoc state :done true)))
#<Agent@5db18235: {}>

user=> (await *agnt*) ; blocks till the agent action is finished
nil
zkim on Sun, 26 Sep 2010
(def *agnt* (agent {}))

user=> (send-off *agnt* (fn [state] (Thread/sleep 10000) (assoc state :done true)))
#<Agent@5db18235: {}>

user=> (await *agnt*) ; blocks till the agent action is finished
nil
ghoseb on Sun, 05 Sep 2010
(def *agnt (agent {}))
(send-off *agnt (fn [state] (Thread/sleep 10000) (assoc state :done true)))
(await *agnt) ; blocks till the agent action is finished