Sha256: ec808535e5bb031ade14cf9d21dd9d1933666c6e66dfb7f967f9cf854e15b6b8

Contents?: true

Size: 559 Bytes

Versions: 37

Compression:

Stored size: 559 Bytes

Contents

module Celluloid
  # Supervisors are actors that watch over other actors and restart them if
  # they crash
  class Supervisor
    class << self
      # Define the root of the supervision tree
      attr_accessor :root

      def supervise(klass, *args, &block)
        SupervisionGroup.new do |group|
          group.supervise klass, *args, &block
        end
      end

      def supervise_as(name, klass, *args, &block)
        SupervisionGroup.new do |group|
          group.supervise_as name, klass, *args, &block
        end
      end
    end
  end
end

Version data entries

37 entries across 35 versions & 6 rubygems

Version Path
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/celluloid-0.16.0/lib/celluloid/supervisor.rb
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/celluloid-0.16.0/lib/celluloid/supervisor.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/supervisor.rb
scoot-0.0.4 .bundle/gems/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/supervisor.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/celluloid-0.16.0/lib/celluloid/supervisor.rb
celluloid-0.16.0 lib/celluloid/supervisor.rb
celluloid-0.16.0.pre3 lib/celluloid/supervisor.rb
vagrant-tiktalik-0.0.3 vendor/bundle/ruby/2.0.0/gems/celluloid-0.15.2/lib/celluloid/supervisor.rb
celluloid-0.16.0.pre2 lib/celluloid/supervisor.rb
celluloid-0.16.0.pre lib/celluloid/supervisor.rb
celluloid-0.15.2 lib/celluloid/supervisor.rb
celluloid-0.15.1 lib/celluloid/supervisor.rb
celluloid-0.15.0 lib/celluloid/supervisor.rb
celluloid-0.15.0.pre2 lib/celluloid/supervisor.rb
celluloid-0.15.0.pre lib/celluloid/supervisor.rb
celluloid-0.14.1 lib/celluloid/supervisor.rb
celluloid-0.14.1.pre lib/celluloid/supervisor.rb
sidekiq-statsd-0.1.1 vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/supervisor.rb
sidekiq-statsd-0.1.0 vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/supervisor.rb
celluloid-0.14.0 lib/celluloid/supervisor.rb