Sha256: 951e5de4db0a549aa26b271c49987d9e8377c927da117154d8d30b5531153157

Contents?: true

Size: 282 Bytes

Versions: 3

Compression:

Stored size: 282 Bytes

Contents

# frozen_string_literal: true

module SidekiqUniqueJobs
  class Lock
    class UntilExpired < BaseLock
      def unlock
        true
      end

      def execute(callback)
        return unless locked?
        yield if block_given?
        callback.call
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-6.0.0.rc3 lib/sidekiq_unique_jobs/lock/until_expired.rb
sidekiq-unique-jobs-6.0.0.rc2 lib/sidekiq_unique_jobs/lock/until_expired.rb
sidekiq-unique-jobs-6.0.0.rc1 lib/sidekiq_unique_jobs/lock/until_expired.rb