Hi,
I'm wondering how do you guys use libraries, which use agents under the hood? Let's suppose I'd like to use "clojure.contrib.http.agent". My program might look like this: <code> (ns eu.rwdev.html (:require [clojure.contrib.http.agent :as http]) (:import [java.net URL] [java.io BufferedReader InputStreamReader])) (defn fetch-url-agent [url] (http/string (http/http-agent url))) (println (fetch-url-agent "http://google.com")) </code> Let's suppose I don't know that there have been used agents here. This program will hang, because I haven't added "shutdown-agents" call. What do you do in such case: a) take a look at the library code to find out if there are used agents b) take a look at the library docs, where should be explicitly required "shutdown-agents" call c) add "shutdown-agents" always just in case d) other solution (I hope there is any) Br, Rob --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---