Sha256: 6b1778a67886b61cdb16fd1c23e8b4d48411bb03c4dd73a68545f503ca7487b0
Contents?: true
Size: 291 Bytes
Versions: 2
Compression:
Stored size: 291 Bytes
Contents
# frozen_string_literal: true module SidekiqUniqueJobs class Lock class UntilExecuted < BaseLock OK ||= 'OK' def execute(callback) return unless locked? using_protection(callback) do yield if block_given? end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sidekiq-unique-jobs-6.0.0.rc2 | lib/sidekiq_unique_jobs/lock/until_executed.rb |
sidekiq-unique-jobs-6.0.0.rc1 | lib/sidekiq_unique_jobs/lock/until_executed.rb |