The docstring for set-error-handler!, to which the docstring for agent refers, does document the argument list of a handler-fn.
I'd also be interested in an explanation of the new scheme. The discussion on http://clojure.org/agents hasn't been updated to 1.2. On Oct 5, 8:48 pm, Lee Spector <lspec...@hampshire.edu> wrote: > On Oct 5, 2010, at 8:31 PM, Lee Spector wrote: > > > > > Do I understand this correctly to mean that the new and improved way that > > agent errors are handled in 1.2 is to fail silently and leave any pending > > awaits hanging without comment? I'm having a hard time imagining how this > > could be a good thing. If I want to know about errors (preferably by > > getting meaningful error messages) should I convert my agent code to use > > other concurrency mechanisms like pmap or futures? > > Posted too soon -- browsing the new documentation I found the error-handler > argument to agent. It took reading the source to find out that the supplied > function should take two arguments, the agent and the exception. I don't see > the rationale for the defaults -- wouldn't it be reasonable to report errors > by default? -- but I can use this to get what I need. > > Sorry for jumping the gun on that. -- 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