> Looking the code again I believe that I should use a future and not an
> agent...
> I am right ???

I would think so. AFAIK, the advice has always been "if you need to do
some computation on another thread don't (ab)use agents, use futures".

Additionally, you have[1]:

(def #^{:dynamic true} *api-key* (atom "N6E4NIOVYMTHNDM8J"))

unless you're planning on setting the key to different values in
different threads (unlikely?) you don't need to use an atom there.

All I've said above could be completely wrong so be warned :)

U

[1] 
https://github.com/siscia/echonest-clojure-api/blob/master/src/echonest_api/with-doc-core.clj#L16

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