Sha256: e586baeffd8da76ec81a5d5d7658a53535b0a4338dcb2c3d8fe901e64449b8d3
Contents?: true
Size: 357 Bytes
Versions: 5
Compression:
Stored size: 357 Bytes
Contents
$: << 'akka' require 'java' require 'akka/akka-modules-1.0' module Akka include_package 'akka.actor' include_package 'akka.dispatch' end class Actor < Akka::UntypedActor def self.spawn Akka::Actors.actorOf { new }.tap do |actor| actor.setDispatcher(Akka::Dispatchers.newThreadBasedDispatcher(actor)) actor.start end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
akka-0.0.5 | lib/akka.rb |
akka-0.0.4 | lib/akka.rb |
akka-0.0.3 | lib/akka.rb |
akka-0.0.2 | lib/akka.rb |
akka-0.0.1 | lib/akka.rb |