Created
April 4, 2012 14:47
-
-
Save mwmitchell/2302060 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(let [res (atom nil) | |
response-future (medusa/medusa-future | |
;; logging the result of client/post shows the correct value | |
(swap! res (fn [_] | |
(client/post config/rtd-url | |
{:headers default-headers | |
:body xml })))] | |
;; this yields nil | |
(.get response-future 3000 java.util.concurrent.TimeUnit/MILLISECONDS) | |
@res) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe it's throwing an exception? HOw does clojure handle a timeout exception?