Hi all,
I'm trying to get a periodic daemon thread working.  I've read some of
the stuff here:

http://groups.google.com/group/clojure/browse_thread/thread/4bc06d413fda157f/e953bb0c9286c5a7

With no luck.  My code looks like this

(defn daemon
  "Creates a new daemon thread and sets runnable to f"
  [f]
  (let [t (Thread. f)]
    (do
      (.setDaemon t true)
      (.start t)
      t)))

And I tried calling

user=>(daemon #(println "foo"))

I get the thread back, but it does not appear to execute.  I've tried
this on OSX and XP.  Does anyone know what I'm doing wrong?

Sean

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