>
> (def a (ref 1))
> (def b (ref 1))
>
> ; Do these concurrently, either from separate agents or using pmap
> (dosync (commute b error-throwing-fn a))
> (dosync (commute a + @b))
>
> I want to have the option to abort the first transaction without
> rolling back the second. Based on what you said, if the first
> transaction is aborted but the second is not then no matter what a's
> value will be 2 and b's value will be 1, correct?
>
>
That's correct.

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