Exception: Celluloid::ExitEvent

Inherits:
SystemEvent show all
Defined in:
lib/celluloid/events.rb

Overview

An actor has exited for the given reason

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(actor, reason = nil) ⇒ ExitEvent

Returns a new instance of ExitEvent.



9
10
11
12
# File 'lib/celluloid/events.rb', line 9

def initialize(actor, reason = nil)
  @actor, @reason = actor, reason
  super reason.to_s
end

Instance Attribute Details

#actorObject (readonly)

Returns the value of attribute actor.



7
8
9
# File 'lib/celluloid/events.rb', line 7

def actor
  @actor
end

#reasonObject (readonly)

Returns the value of attribute reason.



7
8
9
# File 'lib/celluloid/events.rb', line 7

def reason
  @reason
end