Method: Pwush::Response.wrap

Defined in:
lib/pwush/response.rb

.wrapObject



10
11
12
13
14
# File 'lib/pwush/response.rb', line 10

def self.wrap
  Deffered.new(yield).resolve
rescue Http::TimeoutError => e
  Failure.new(e)
end