Hi Tim,
On Feb 19, 3:17Â pm, Timothy Pratley wrote:
> (defn some-action [x] (println "FOO:" (:clojure.contrib.http.agent/result x)))
Thanks for the tip, when I looked at the http-agent code and I saw the
::result keyword I thought that meant it was private to the namespace
which meant I couldn't
On 19 February 2010 13:35, sim wrote:
> Yes there are other alternatives, but consider this.
>
> (doseq [url urls]
> (let [agt (http-agent url)]
> (send-off agt some-action)))
Ok I understand better where you are coming from now... you want
some-action to occur after http-agent tasks have run
Yes there are other alternatives, but consider this.
(doseq [url urls]
(let [agt (http-agent url)]
(send-off agt some-action)))
I think that some-action should be able to use string and result as
the HTTP request is complete at this stage. However some-action
can't as both string and resul
On 18 February 2010 23:12, sim wrote:
> I have been using http-agents to grab a bunch of pages and then
> process them, my initial solutions involved partitioning a sequence of
> urls and then awaiting for that group before moving on.
Consider this alternative:
(use 'clojure.contrib.duck-streams