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:



538
539
540
# File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 538

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)


544
545
546
# File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 544

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