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