Class: Concurrent::ErlangActor::Terminated
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb |
Overview
A message send when actor terminates.
Class Method Summary
- .new(from, reason) ⇒ Terminated constructor private
Instance Attribute Summary
- #from ⇒ Pid readonly
- #reason ⇒ Object readonly
Instance Method Summary
- #==(o) ⇒ true, false (also: #eql?)
-
#eql?(o)
Alias for #==.
- #hash ⇒ Integer
- #to_ary ⇒ ::Array(Pid, Object)
Constructor Details
.new(from, reason) ⇒ Terminated
(private)
# File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 1412
def initialize(from, reason) # noinspection RubySuperCallWithoutSuperclassInspection @from = from @reason = reason end
Instance Attribute Details
#from ⇒ Pid (readonly)
# File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 1407
attr_reader :from
#reason ⇒ Object (readonly)
# File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 1409
attr_reader :reason
Instance Method Details
#==(o) ⇒ true
, false
Also known as: #eql?
#eql?(o)
Alias for #==.
# File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 1428
alias_method :eql?, :==
#hash ⇒ Integer
# File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 1431
def hash [@from, @reason].hash end
#to_ary ⇒ ::Array
(Pid, Object)
# File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 1419
def to_ary [@from, @reason] end