On Fri, May 20, 2011 at 8:36 PM, Ken Wesson <kwess...@gmail.com> wrote: > Current doc string: > > Blocks the current thread (indefinitely!) until all actions > dispatched thus far, from this thread or agent, to the agent(s) have > occurred. Will block on failed agents. Will never return if > a failed agent is restarted with :clear-actions true. > > What it doesn't note is that (as is typical, mind you, of blocking > methods in Java) you can kick the thread out of its funk with > interrupt.
As I suspected, you can liberate (or at least kill) a thread deadlocked on a promise with Thread.interrupt() as well. The deref call will throw InterruptedException. I have also posted code for a promise whose deref will time out in some earlier thread. -- Protege: What is this seething mass of parentheses?! Master: Your father's Lisp REPL. This is the language of a true hacker. Not as clumsy or random as C++; a language for a more civilized age. -- 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