bOR_ a écrit : > can I call something like (apply await myvectorofrefs) if I have a > bunch of futures running and I want to wait for them to finish before > I go on with the next step in the model? >
No you can't use await. The simplest way to await for a future is to deref it: @fut blocks until the computation ends. Hence to await on a bunch of futures you can do: (doseq [f futs] @f) or (dorun (map deref futs)) But, since deref blocks, do you really need to await on them? Christophe -- Professional: http://cgrand.net/ (fr) On Clojure: http://clj-me.blogspot.com/ (en) --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---