Class: ActiveMessage::Worker

Inherits:
Object
  • Object
show all
Defined in:
lib/active_message/worker.rb

Instance Method Summary collapse

Instance Method Details

#initializerObject



3
4
5
# File 'lib/active_message/worker.rb', line 3

def initializer
  ActiveMessage::Logger.debug "Initialized ActiveMessage Worker ...."
end

#runObject



7
8
9
10
11
12
# File 'lib/active_message/worker.rb', line 7

def run
  ActiveMessage::Logger.debug "ActiveMessage Worker Started ...."
  setup_bindings
  threads.each(&:join)
  ActiveMessage::Logger.debug "ActiveMessage Worker Stopped ...."
end

#threadsObject



14
15
16
# File 'lib/active_message/worker.rb', line 14

def threads
  @threads ||= []
end