class Puma::ThreadPool

def with_force_shutdown

Experimental RBS support (using type sampling data from the type_fusion project).

def with_force_shutdown: () -> nil

This signature was generated using 1 sample from 1 application.

provided block if the thread is forced to shutdown during execution.
Allows ThreadPool::ForceShutdown to be raised within the
def with_force_shutdown
  t = Thread.current
  @shutdown_mutex.synchronize do
    raise ForceShutdown if @force_shutdown
    t[:with_force_shutdown] = true
  end
  yield
ensure
  t[:with_force_shutdown] = false
end