Sha256: 2bb1b458f61da21fcebc3705bf19c4c477692a945d3532aa06426bb505a5d8ad
Contents?: true
Size: 395 Bytes
Versions: 25
Compression:
Stored size: 395 Bytes
Contents
# frozen_string_literal: true module Hyrax module Lockable extend ActiveSupport::Concern def acquire_lock_for(lock_key, &block) lock_manager.lock(lock_key, &block) end def lock_manager @lock_manager ||= LockManager.new( Hyrax.config.lock_time_to_live, Hyrax.config.lock_retry_count, Hyrax.config.lock_retry_delay ) end end end
Version data entries
25 entries across 25 versions & 1 rubygems