Module: Yoda::Server::Providers::WithTimeout::PrependHook
- Defined in:
- lib/yoda/server/providers/with_timeout.rb
Instance Method Summary collapse
Instance Method Details
#provide(*args) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/yoda/server/providers/with_timeout.rb', line 8 def provide(*args) begin Timeout.timeout(timeout) { super } rescue Timeout::Error => err if = (*args) Logger.error("Request expired: " + ) else Logger.error("Request expired") end raise err end end |