Open timriley opened 7 years ago
There are a bunch of common things we could pull out of all of our operations:
include Dry::Monads::Either::Mixin
include Dry::Matcher.for(:call, with: Dry::Matcher::EitherMatcher)
call(*args).or { |f| raise Failure, f }
#call_from_queue
There are a bunch of common things we could pull out of all of our operations:
include Dry::Monads::Either::Mixin
include Dry::Matcher.for(:call, with: Dry::Matcher::EitherMatcher)
call(*args).or { |f| raise Failure, f }
pattern inside#call_from_queue
methods