123456789_123456789_123456789_123456789_123456789_

Class: Concurrent::ErlangActor::NoActor

Relationships & Source Files
Inherits: Concurrent::Error
  • ::Object
Defined in: lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb

Overview

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

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(pid = nil) ⇒ self

Parameters:

  • pid (Pid) (defaults to: nil)
[ GitHub ]

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

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

Instance Attribute Details

#pidPid (readonly)

[ GitHub ]

  
# File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 1507

attr_reader :pid

Instance Method Details

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

[ GitHub ]

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

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

#eql?(o)

Alias for #==.

[ GitHub ]

  
# File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 1521

alias_method :eql?, :==

#hashInteger

[ GitHub ]

  
# File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 1524

def hash
  pid.hash
end