Module: Concurrent::ErlangActor::FunctionShortcuts

Included in:
Concurrent::ErlangActor
Defined in:
lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb

Overview

Constrains shortcuts for methods in Functions.

Instance Method Summary collapse

Instance Method Details

#spawn(*args, **kwargs, &body) ⇒ Pid

Optionally included shortcut method for Concurrent::ErlangActor::Functions#spawn_actor

Returns:



534
535
536
# File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 534

def spawn(*args, **kwargs, &body)
  spawn_actor(*args, **kwargs, &body)
end

#terminate(pid, reason) ⇒ true

Optionally included shortcut method for Concurrent::ErlangActor::Functions#terminate_actor

Returns:

  • (true)


540
541
542
# File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 540

def terminate(pid, reason)
  terminate_actor(pid, reason)
end