Method: Thin::Connection#threaded?

Defined in:
lib/thin/connection.rb

#threaded?Boolean

true if app.call will be called inside a thread. You can set all requests as threaded setting Connection#threaded=true or on a per-request case returning true in app.deferred?.

Returns:

  • (Boolean)


192
193
194
# File 'lib/thin/connection.rb', line 192

def threaded?
  @threaded || (@app.respond_to?(:deferred?) && @app.deferred?(@request.env))
end