module Concurrent::ErlangActor

This module provides actor abstraction that has same behaviour as Erlang actor.

{include:file:docs-source/erlang_actor.out.md} @!macro warn.edge

Constants

JUMP
KLASS_MAP
NOTHING
RECEIVE
TERMINATE

Public Class Methods

create(type, channel, environment, name, executor) click to toggle source

@!visibility private

# File lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb, line 1531
def self.create(type, channel, environment, name, executor)
  actor = KLASS_MAP.fetch(type).new(channel, environment, name, executor)
ensure
  log Logger::DEBUG, actor.pid, created: caller[1] if actor
end