Just had a bit of a gotcha on Clojure that I thought I'd share.

My tests started hanging after completion, which was a real pain on
the continuous integration server.

After some investigation, I determine that this unwanted behavior
started when I first introduced agents into my code.

I needed to add a call to the shutdown-agents function into my test
script, otherwise the main thread would complete, but the agents
thread pool would keep the JVM from shutting down.

Is there a way to mark agents as a daemon thread?  Is that desirable?

-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

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

Reply via email to