Sha256: ffd7c64245c7128415323b2b23759e39320c051460a1560aa3bd41cb1825cb24
Contents?: true
Size: 306 Bytes
Versions: 1
Compression:
Stored size: 306 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 unlock 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_executed.rb |