akka + jruby = actors (concurrency without worrying about threads)
Ruby Shell
Switch branches/tags
Nothing to show
Pull request Compare This branch is 18 commits ahead of biilmann:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
lib
.gitignore
MIT-LICENSE
README.md
akka.gemspec
akka.tmproj

README.md

Using the Akka Actor Framework from JRuby - Now in Gem Form

Using the akka (Akka) gem from JRuby.

require 'rubygems' require 'akka'

class TestActor < Actor
  def onReceive(msg)
	puts "Got message: #{msg}"
  end
end

actor = TestActor.spawn

10.times do
  actor.sendOneWay("Hello Actor!")
end