Sha256: 521273bda13b0208d41f479f021af4e19eda13935a8f9929bd16ff2ff50f97ce
Contents?: true
Size: 423 Bytes
Versions: 1
Compression:
Stored size: 423 Bytes
Contents
# frozen_string_literal: true module SidekiqUniqueJobs class Lock class UntilAndWhileExecuting < BaseLock def execute(callback) return unless locked? unlock runtime_lock.execute(callback) do yield if block_given? end end def runtime_lock @runtime_lock ||= SidekiqUniqueJobs::Lock::WhileExecuting.new(item, redis_pool) 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_and_while_executing.rb |