Thank you

On Friday, February 10, 2017 at 11:08:33 PM UTC-5, Francis Avila wrote:
>
> Not all intermediates appear because in between your completed swap! and 
> your log (really the deref of the atom) the value in the atom changed.
>
> You are using atoms correctly. Your swap! function would me more idiomatic 
> if it used the threading macro (->) but otherwise is fine.
>
> If you really need to log each and every change of value, consider using 
> dosync, one or more refs, and an agent to log. Dosync will not run agent 
> send-off!s until the transaction commits successfully, and it will run 
> exactly once per commit. 
>
>

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to