Hi,
Am Donnerstag, 12. September 2013 11:11:36 UTC+2 schrieb Brandon Ibach:
>
> Aaron, as shown in the test case attached to the ticket, I'm calling the
> Clojure library from Java code, so I use the Agent.dispatch() method. The
> project where this issue was found is attempting to use Clojure's STM and
> Agent support to fix concurrency issues in an existing, rather large, Java
> code base, which we're not quite ready to port to another language, just
> yet.
>
In the past using Java methods directly was considered wrong. If you want
to send to a Agent you should use RT.var("clojure.core", "send").invoke(...).
This can be hidden behind a simple Java facade. (At some point there was
some talk about an official Java facade for that purpose, IIRCI).
Kind regards
Meikel
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.