Hmm. This is becoming something of a puzzle.
A simple noncode version of the model I am using is this
(loop
(increase year with 1)
(break and create bidirectional links between refs)
)
The break and create step represents a contact network between humans,
where each human is basically a str
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 u
Related to the (future function. (there is a bit of a lack of
documentation on it, but I guess I can derive more from the example in
http://clojure.org/refs,)
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
As far as I can tell, futures are *not* agents, but wrap the
java.util.concurrent.Future class. However, they do run in the same thread
pool that the agents use, so your point still stands.
On Fri, Feb 20, 2009 at 9:09 AM, Mark Volkmann wrote:
>
> The doc string for the future function should p
The doc string for the future function should probably mention that it
uses an Agent so shutdown-agents should be called at the end of
applications that use it.
--
R. Mark Volkmann
Object Computing, Inc.
--~--~-~--~~~---~--~~
You received this message because you