The following code creates a timer that runs after a delay of three
seconds.

(import '(java.util TimerTask Timer))

(let [task (proxy [TimerTask] []
             (run [] (println "Running")))]
  (. (new Timer) (schedule task (long 3000))))

I'll let someone else comment on the concurrency issues.

Bill
--~--~---------~--~----~------------~-------~--~----~
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
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to