Class: Concurrent::ErlangActor::Terminated

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

Overview

A message send when actor terminates.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fromPid (readonly)

Returns:



1407
1408
1409
# File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 1407

def from
  @from
end

#reasonObject (readonly)

Returns:

  • (Object)


1409
1410
1411
# File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 1409

def reason
  @reason
end

Instance Method Details

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

Returns:

  • (true, false)


1424
1425
1426
# File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 1424

def ==(o)
  o.class == self.class && o.from == @from && o.reason == self.reason
end

#hashInteger

Returns:

  • (Integer)


1431
1432
1433
# File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 1431

def hash
  [@from, @reason].hash
end

#to_ary::Array(Pid, Object)

Returns:

  • (::Array(Pid, Object))


1419
1420
1421
# File 'lib/concurrent-ruby-edge/concurrent/edge/erlang_actor.rb', line 1419

def to_ary
  [@from, @reason]
end