Hi all, I have a polyglot project, comprising of a little Java and mostly Clojure code. The Java class is a concrete callback for an external library. There will be sub-second firing of that callback, and event map objects will get pushed onto a list.
>From Clojure, I need to access that list in the callback. The problem is that, in Clojure, we have STM (like refs) that can control access to the data. If that data member is in Java, how can I control the access? From Clojure, I could potentially access and flush the list, while the Java callback is writing to it. Is there a better strategy here? Can Java access a STM ref in Clojure? How might that work? Thanks Tim -- -- 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 --- 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 clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.