Sha256: 89bc40fa58257df70c9f43f34340648e3dbc1f72cc46b16ad9920c48f26b9331
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 |
---|---|
njiuko-pwush-0.3.3 | lib/pwush/response.rb |
njiuko-pwush-0.3.2 | lib/pwush/response.rb |
njiuko-pwush-0.3.1 | lib/pwush/response.rb |