Class: MongoJob::Deamon

Inherits:
Object
  • Object
show all
Extended by:
Mixins::FiberRunner::ClassMethods
Includes:
Mixins::FiberRunner::InstanceMethods
Defined in:
lib/mongojob/deamon.rb

Instance Method Summary collapse

Methods included from Mixins::FiberRunner::ClassMethods

task

Methods included from Mixins::FiberRunner::InstanceMethods

#run_defined_tasks, #run_em_fiber

Instance Method Details

#runObject

Runs the worker



10
11
12
13
14
# File 'lib/mongojob/deamon.rb', line 10

def run
  EM.run do
    run_defined_tasks
  end
end