Changes for clojure.core/send

jafingerhut on Wed, 28 Mar 2012
user=> (def my-agent (agent 100))
#'user/my-agent
user=> @my-agent
100

;; Note the following happens asynchronously in a thread
;; pool
user=> (send my-agent + 100)
#<Agent@5afc0f5: 200>

;; Assuming the addition has completed the value will
;; now be updated when we look at it.
user=> @my-agent
200
gstamp on Tue, 24 Aug 2010
user=> (def my-agent (agent 100))
#'user/my-agent
user=> @my-agent
100

;; Note the following happens asynchronously in a thread
;; pool
user=> (send my-agent + 100)
#<Agent@5afc0f5: 200>

;; Assuming the addition has completed the value will
;; now be updated when we look at it.
user=> @my-agent
200