On 28 Jan 2010, at 08:39, Michał Marczyk wrote:

Wouldn't this make it possible for two threads to obtain the same
value of (first @data-source), then send two rest messages to the
agent?

A ref would not have this problem, though:

You are right. Refs provide synchronous access to the data source.

Konrad.

--
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