Method: Gin::Config#write_timeout

Defined in:
lib/gin/config.rb

#write_timeout(sec = nil) ⇒ Object

Get or set the write timeout when waiting for reader thread locks. Defaults to 0.05 sec. See Gin::RWLock for more details.



68
69
70
71
# File 'lib/gin/config.rb', line 68

def write_timeout sec=nil
  @lock.write_timeout = sec if sec
  @lock.write_timeout
end