Class: PumaWorkerKiller::AutoReap
- Inherits:
-
Object
- Object
- PumaWorkerKiller::AutoReap
- Defined in:
- lib/puma_worker_killer/auto_reap.rb
Instance Method Summary collapse
-
#initialize(timeout, reaper = Reaper.new) ⇒ AutoReap
constructor
A new instance of AutoReap.
- #start ⇒ Object
Constructor Details
Instance Method Details
#start ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/puma_worker_killer/auto_reap.rb', line 11 def start @running = true Thread.new do while @running sleep @timeout @reaper.reap end end end |