Method: ConcurrentWorker::Worker#quit

Defined in:
lib/concurrent_worker/worker.rb

#quitObject



182
183
184
185
186
187
188
189
190
191
192
# File 'lib/concurrent_worker/worker.rb', line 182

def quit
  unless @state == :run
    return
  end
  begin 
    send_req(nil)
    true
  rescue ClosedQueueError, IOError
    false
  end
end