Class: Concurrent::ErlangActor::NoActor

Inherits:
Error
  • Object
show all
Defined in:
lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb

Overview

An error used when actor tries to link or monitor terminated actor.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pid = nil) ⇒ self

Parameters:

  • pid (Pid) (defaults to: nil)


1503
1504
1505
1506
# File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 1503

def initialize(pid = nil)
  super(pid.to_s)
  @pid = pid
end

Instance Attribute Details

#pidPid (readonly)

Returns:



1499
1500
1501
# File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 1499

def pid
  @pid
end

Instance Method Details

#==(o) ⇒ true, false Also known as: eql?

Returns:

  • (true, false)


1509
1510
1511
# File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 1509

def ==(o)
  o.class == self.class && o.pid == self.pid
end

#hashInteger

Returns:

  • (Integer)


1516
1517
1518
# File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 1516

def hash
  pid.hash
end