I'm using clojure 1.2.0. According to the await-for doc string, it should return nil when returning because of a timeout. But in all my tests, it returns false (and true when returning because the agent is done).
For example: (defn sleep [_ n] (println (format "Sleeping for %d seconds" (* n 1000))) (Thread/sleep (* n 1000)) (println (format "Done sleeping for %d seconds" (* n 1000)))) (def a1 (agent nil)) (send-off a1 sleep 6) ; prints false when agent is still running (not nil) (println (await-for 2000 a1)) ; prints true (println (await-for 10000 a1)) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. 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
