class Celluloid::Supervisor - celluloid-0.15.2 Documentation

# class Celluloid::Supervisor

Supervisors are actors that watch over other actors and restart them if they crash

### Attributes

root[RW]

Define the root of the supervision tree

### Public Instance Methods

supervise(klass, *args, &block) click to toggle source

    # File lib/celluloid/supervisor.rb, line 9
    def supervise(klass, *args, &block)
      SupervisionGroup.new do |group|
        group.supervise klass, *args, &block
      end
    end

supervise_as(name, klass, *args, &block) click to toggle source

    # File lib/celluloid/supervisor.rb, line 15
    def supervise_as(name, klass, *args, &block)
      SupervisionGroup.new do |group|
        group.supervise_as name, klass, *args, &block
      end
    end