send asynchronously dispatches an action function to an agent. The function receives the agent’s current value and produces its next value; actions execute sequentially on the agent’s send pool. section 14.6
Increment an agent
(def a (agent 0)) (send a inc) (deref a) ; 1 @(send a inc) ; 1 (deref a) ; 2
