# File lib/rubinius/actor.rb, line 64 def spawn(*args, &block) raise ArgumentError, "no block given" unless block spawned = Rubinius::Channel.new Thread.new do private_new do |actor| Thread.current[:__current_actor__] = actor spawned << actor block.call *args end end spawned.receive end