Hi,

Am 11.05.2011 um 03:00 schrieb Ken Wesson:

> Anyway, maybe this will come in handy:

Clojure 1.3 will support timeouts; however on the deref side, not on promise 
definition. It'll also handle the not-delivered issue.

user=> (def p (promise))
#'user/p
user=> (future (Thread/sleep 5000) (deliver p 42))      
#<core$future_call$reify__5399@7a7c3885: :pending>
user=> p
#<core$promise$reify__5442@3288df60: :not-delivered>
user=> p
#<core$promise$reify__5442@3288df60: 42>

Sincerely
Meikel

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