Class: Concurrent::ErlangActor::Terminated

Inherits:
Object
  • Object
show all
Defined in:
lib-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:



1403
1404
1405
# File 'lib-edge/concurrent/edge/erlang_actor.rb', line 1403

def from
  @from
end

#reasonObject (readonly)

Returns:

  • (Object)


1405
1406
1407
# File 'lib-edge/concurrent/edge/erlang_actor.rb', line 1405

def reason
  @reason
end

Instance Method Details

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

Returns:

  • (true, false)


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

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

#hashInteger

Returns:

  • (Integer)


1427
1428
1429
# File 'lib-edge/concurrent/edge/erlang_actor.rb', line 1427

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

#to_ary::Array(Pid, Object)

Returns:

  • (::Array(Pid, Object))


1415
1416
1417
# File 'lib-edge/concurrent/edge/erlang_actor.rb', line 1415

def to_ary
  [@from, @reason]
end