On Jul 29, 8:17 pm, Michael Wood <esiot...@gmail.com> wrote: > 2009/7/29 mwillson <cdr....@gmail.com>: > > > > I was experimenting with Clojure and XML and stumbled upon a lengthy > > hang when exiting java which was tracked down to the use of > > clojure.contrib.lazy-xml. Here's a toy example which exhibits the > > issue: > > I haven't looked at clojure.contrib.lazy-xml, but this sounds like > what happens if you make use of agents. Shutting down the agents with > (shutdown-agents) should fix it if so. Perhaps > clojure.contrib.lazy-xml uses agents.
Michael, Thanks for your reply. You are quite right - adding (shutdown-agents) does allow the script using lazy-xml to exit promptly. From a cursory scan of the lazy-xml/parse-seq code, it does use agents. -mark --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---