Method: Puma::Reactor#run

Defined in:
lib/puma/reactor.rb

#run(background = true) ⇒ Object

Run the internal select loop, using a background thread by default.



43
44
45
46
47
48
49
50
51
52
# File 'lib/puma/reactor.rb', line 43

def run(background=true)
  if background
    @thread = Thread.new do
      Puma.set_thread_name "reactor"
      select_loop
    end
  else
    select_loop
  end
end