Sha256: ff62e48e9b148b49b84bdbb0bbe56159838c2e923db06c02d0625f4f35aa7f07
Contents?: true
Size: 616 Bytes
Versions: 1
Compression:
Stored size: 616 Bytes
Contents
module Celluloid # Exceptional system events which need to be processed out of band class SystemEvent < Exception; end # An actor has exited for the given reason class ExitEvent < SystemEvent attr_reader :actor, :reason def initialize(actor, reason = nil) @actor, @reason = actor, reason super reason.to_s end end # Name an actor at the time it's registered class NamingRequest < SystemEvent attr_reader :name def initialize(name) @name = name end end # Request for an actor to terminate class TerminationRequest < SystemEvent; end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kulesa-celluloid-0.10.2 | lib/celluloid/events.rb |