module Puma::Util

def purge_interrupt_queue

Additional context: https://github.com/puma/puma/pull/1345
which currently effects some older versions of Ruby: 2.2.7 2.2.8 2.2.9 2.2.10 2.3.4 2.4.1
An instance method on Thread has been provided to address https://bugs.ruby-lang.org/issues/13632,
def purge_interrupt_queue
  Thread.current.purge_interrupt_queue if Thread.current.respond_to? :purge_interrupt_queue
end