Sha256: 234e3ed02258765369ef69a236fbc558dbdb73b5b42941adce6176c3b9f77c70
Contents?: true
Size: 364 Bytes
Versions: 8
Compression:
Stored size: 364 Bytes
Contents
# frozen_string_literal: true module SidekiqUniqueJobs module Lock class UntilTimeout < UntilExecuted def unlock(scope) return true if scope.to_sym == :server raise ArgumentError, "#{scope} middleware can't #{__method__} #{unique_key}" end def execute(_callback) yield if block_given? end end end end
Version data entries
8 entries across 8 versions & 1 rubygems