Yep, i changed it in futures... I am unsure about the atom of api-key, in theory i won't need to change my api-key, but idk... You can get a lot of api-key gratis which are a little limited or just one payed api-key that can do everything...
Il giorno giovedì 24 maggio 2012 00:56:25 UTC-5, Ulises ha scritto: > > > 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