On Mon, Jan 12, 2009 at 9:01 AM, Mark Volkmann <r.mark.volkm...@gmail.com> wrote: > > On Mon, Jan 12, 2009 at 5:15 AM, Tom Ayerst <tom.aye...@gmail.com> wrote: >> For example, I am pretty sure I don't need to wrap 'send' in 'dosync' (it >> works without it). > > Right. dosync starts a transaction. Agents and Atoms aren't affected > by transactions. You only need dosync when working with Refs.
That's not quite true. Agents are "affected" to the extent that 'send' and 'send-off' operations done inside a 'dosync' are held until the transaction commits before being sent. Maybe you didn't mean to say otherwise, but I thought I'd mention it in case. --Chouser --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---