2011-04-09 19:55:46 -06:00
|
|
|
Other Language Bindings
|
|
|
|
|
=======================
|
|
|
|
|
|
|
|
|
|
JRuby
|
2011-04-11 21:44:00 -06:00
|
|
|
-----
|
2011-04-09 19:55:46 -06:00
|
|
|
|
|
|
|
|
High level concurrency using Akka actors and JRuby.
|
|
|
|
|
|
|
|
|
|
`<https://github.com/danielribeiro/RubyOnAkka>`_
|
|
|
|
|
|
|
|
|
|
If you are using STM with JRuby then you need to unwrap the Multiverse control flow exception as follows:
|
|
|
|
|
|
|
|
|
|
.. code-block:: ruby
|
|
|
|
|
|
|
|
|
|
begin
|
|
|
|
|
... atomic stuff
|
|
|
|
|
rescue NativeException => e
|
|
|
|
|
raise e.cause if e.cause.java_class.package.name.include? "org.multiverse"
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
Groovy/Groovy++
|
2011-04-11 21:44:00 -06:00
|
|
|
---------------
|
2011-04-09 19:55:46 -06:00
|
|
|
|
|
|
|
|
`<https://gist.github.com/620439>`_
|