Why not just run an agent that does something, then calls sleep for N
seconds, then calls the next thing?

Granted, it will eat up a thread in your agent thread pool, but if
you've only got one of these in the app it shouldn't be a problem.

Or you could go the Java route, and start a daemon thread manually.

-Luke



On Oct 30, 12:05 am, Stefan Arentz <ste...@arentz.ca> wrote:
> What is a good and simple way to run periodic tasks in Clojure? I need  
> to run a simple function every couple of minutes. And make sure that  
> if it throws an exception that it won't kill the periodic task.
>
> I come from a Spring world where XML, Timers, Jobs and Quartz rule the  
> world, so am hoping for something small and elegant for Closure :-)
>
>   S.
--~--~---------~--~----~------------~-------~--~----~
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