module Concurrent::ActorContext

def spawn(opts = {})

Returns:
  • (SimpleActorRef) - the `ActorRef` encapsulating the actor

Options Hash: (**opts)
  • :args (Array) -- arguments to be passed to the actor constructor

Parameters:
  • opts (Hash) -- the options defining actor behavior
def spawn(opts = {})
  args = opts.fetch(:args, [])
  Concurrent::SimpleActorRef.new(self.new(*args), opts)
end