I did something for a http lib:

;; get them concurrently(let [response1 (http/get "http://http-kit.org/";)
      response2 (http/get "http://clojure.org/";)]
  ;; handle responses one-by-one, waiting for response as necessary
  ;; other keys :headers :status :error :opts
  (println "response1: " (:body @response1))
  (println "response2: " (:body @response2)))



On Thursday, February 7, 2013 2:45:36 AM UTC+8, da...@dsargeant.com wrote:
>
> I'm not to clojure/clojurescript and was wondering if anyone has taken a 
> crack at writing a macro that transforms callbacks into a sequence.  There 
> is an awesome implementationion in LispyScript show here: 
> https://gist.github.com/santoshrajan/3715526.  Thanks for help.
>
> David
>

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to