Sha256: b654d3d2eabbc0e6924d18e60a82c7f944cb817ebcf3829b846eeb66be2066cd

Contents?: true

Size: 228 Bytes

Versions: 1

Compression:

Stored size: 228 Bytes

Contents

# frozen_string_literal: true

module SidekiqUniqueJobs
  class Lock
    class UntilExecuting < BaseLock
      def execute(callback)
        unlock
        callback.call
        yield if block_given?
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sidekiq-unique-jobs-6.0.0.rc3 lib/sidekiq_unique_jobs/lock/until_executing.rb