Sha256: b6b0629f0e9650da419252b53dcceac170a2a79a5400f592b354dfccfe8f2217
Contents?: true
Size: 350 Bytes
Versions: 3
Compression:
Stored size: 350 Bytes
Contents
module PumaWorkerKiller class AutoReap def initialize(timeout, reaper = Reaper.new) @timeout = timeout # seconds @reaper = reaper @running = false end def start @running = true Thread.new do while @running @reaper.reap sleep @timeout end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
puma_worker_killer-0.0.6 | lib/puma_worker_killer/auto_reap.rb |
puma_worker_killer-0.0.5 | lib/puma_worker_killer/auto_reap.rb |
puma_worker_killer-0.0.4 | lib/puma_worker_killer/auto_reap.rb |