In Clojure 1.4, I came across the following this week: user=> (def f (future (Thread/sleep 20000))) #'user/f user=> f #<core$future_call$reify__6110@27adc5f7: :pending> user=> (future-cancel f) true user=> f CancellationException java.util.concurrent.FutureTask$Sync.innerGet (FutureTask.java:220)
That is, when printing a future, the cancellation state isn't checked for resulting in an exception when Future.get() is called. It's more annoying when the future is part of a larger data structure. Cheers, Dave -- 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