Class: Celluloid::Supervisor
- Inherits:
-
Object
- Object
- Celluloid::Supervisor
- Defined in:
- lib/celluloid/supervision/deprecate/supervise.rb
Overview
Supervisors are actors that watch over other actors and restart them if they crash
Class Attribute Summary collapse
-
.root ⇒ Object
Define the root of the supervision tree.
Class Method Summary collapse
Class Attribute Details
.root ⇒ Object
Define the root of the supervision tree
33 34 35 |
# File 'lib/celluloid/supervision/deprecate/supervise.rb', line 33 def root @root end |
Class Method Details
.supervise(klass, *args, &block) ⇒ Object
36 37 38 39 |
# File 'lib/celluloid/supervision/deprecate/supervise.rb', line 36 def supervise(klass, *args, &block) args.unshift(klass) Celluloid.supervise(*args, &block) end |
.supervise_as(name, klass, *args, &block) ⇒ Object
42 43 44 45 |
# File 'lib/celluloid/supervision/deprecate/supervise.rb', line 42 def supervise_as(name, klass, *args, &block) args.unshift(klass) Celluloid.supervise_as(name, *args, &block) end |