> reloading code at the REPL, because old background threads may still be
> running with old code. So I end up restarting the process many times per
> day.

I usually create a 'restart fn that closes down the background threads
and services and restarts them.
This might require you to add a 'shutdown' command to your services
but I've found this to be a small price to pay.

Also, it's some extra code to have threads loop/block on some
condition for 100ms (in debug mode) instead of forever, but this gives
the thread a chance to clean up and terminate every 100ms based on
some condition (set by your restart fn).

Every time you restart your repl you'll wish you had taken the time to
do something like this :-)

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