On May 1, 1:40 pm, Raoul Duke <[email protected]> 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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to