Sha256: 16eab14739f9463aaa15ff7407aa5ff0dabbbc8d925b547dd0b5de2d799001ec
Contents?: true
Size: 379 Bytes
Versions: 1
Compression:
Stored size: 379 Bytes
Contents
# frozen_string_literal: true 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 sleep @timeout @reaper.reap end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
puma_worker_killer-1.0.0 | lib/puma_worker_killer/auto_reap.rb |