The 'if' is terse, but correct: call is on agent's thread only when reference 
is an agent, and before pending sends only when reference is an agent or ref.

Cheers,
Stu

> Hi,
> 
> I think there're two typos in
> http://clojure.github.com/clojure/clojure.core-api.html#clojure.core/add-watch
> - I believe 'if' should become 'of':
> 
> The watch fn will be called synchronously, on the agent's thread if an
> agent, before any pending sends if agent or ref.
> 
> should become
> 
> The watch fn will be called synchronously, on the agent's thread of an
> agent, before any pending sends of agent or ref.
> 
> Jacek
> 
> -- 
> Jacek Laskowski
> Java EE, functional languages and IBM WebSphere - http://blog.japila.pl
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to