On May 1, 1:40 pm, Raoul Duke <rao...@gmail.com> wrote:
> hi,
>
> has anybody experimented with using Clojure code from e.g. Scala, to
> get Clojure STM goodness in other languages?
>

The Clojure STM is just a Java library. You could use clojure.lang.Ref
and LockingTransaction directly from Java/Scala/etc.

runInTransaction takes a Callable, and the values placed in Refs can
be anything immutable.

Rich

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to