Sha256: 29cc02dbdcee235b4f18fe22070f2879c7cabee085a71b075a675e9f1b1c7140
Contents?: true
Size: 292 Bytes
Versions: 3
Compression:
Stored size: 292 Bytes
Contents
require 'dry/monads/result' require 'pwush/response/deffered' require 'pwush/response/value' module Pwush module Response include Dry::Monads::Result::Mixin def self.wrap Deffered.new(yield).resolve rescue Http::TimeoutError => e Failure.new(e) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pwush-0.3.0 | lib/pwush/response.rb |
pwush-0.2.0 | lib/pwush/response.rb |
pwush-0.1.5 | lib/pwush/response.rb |