Class: Puma::ThreadPool::Reaper

### Home Classes Methods

### In Files

- lib/puma/thread_pool.rb

### Parent

Object

### Methods

- ::new
- #start!
- #stop

### Files

- Manifest.txt

### Class/Module Index

Quicksearch

- Puma
- Puma::App
- Puma::App::Status
- Puma::Binder
- Puma::CLI
- Puma::Client
- Puma::Cluster
- Puma::Cluster::Worker
- Puma::CommonLogger
- Puma::ConfigDefault
- Puma::Configuration
- Puma::Configuration::ConfigMiddleware
- Puma::ConnectionError
- Puma::Const
- Puma::ControlCLI
- Puma::DSL
- Puma::Delegation
- Puma::Events
- Puma::Events::DefaultFormatter
- Puma::Events::PidFormatter
- Puma::IOBuffer
- Puma::JRubyRestart
- Puma::JavaIOBuffer
- Puma::MiniSSL
- Puma::MiniSSL::Context
- Puma::MiniSSL::SSLError
- Puma::MiniSSL::Server
- Puma::MiniSSL::Socket
- Puma::NullIO
- Puma::Rack
- Puma::Rack::Builder
- Puma::Rack::Options
- Puma::Rack::URLMap
- Puma::Reactor
- Puma::Runner
- Puma::Server
- Puma::Single
- Puma::TCPLogger
- Puma::ThreadPool
- Puma::ThreadPool::AutoTrim
- Puma::ThreadPool::Reaper
- Puma::UnsupportedOption
- Puma::Util
- Puma::Util::HeaderHash
- OpenSSL
- OpenSSL::SSL
- OpenSSL::SSL::SSLServer
- Rack
- Rack::Handler
- Rack::Handler::Puma
- IO
- IO::WaitReadable
- Object
- Process
- String

No matching classes.

# Puma::ThreadPool::Reaper

### Public Class Methods

new(pool, timeout) click to toggle source

    # File lib/puma/thread_pool.rb, line 207
    def initialize(pool, timeout)
      @pool = pool
      @timeout = timeout
      @running = false
    end

### Public Instance Methods

start!() click to toggle source

    # File lib/puma/thread_pool.rb, line 213
    def start!
      @running = true

      @thread = Thread.new do
        while @running
          @pool.reap
          sleep @timeout
        end
      end
    end

stop() click to toggle source

    # File lib/puma/thread_pool.rb, line 224
    def stop
      @running = false
      @thread.wakeup
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.