Sha256: 947fcd38b0cfa55089f0f37cdbb13102621c5eef632f961d00a973821ea0ad95

Contents?: true

Size: 139 Bytes

Versions: 3

Compression:

Stored size: 139 Bytes

Contents

class RedisLock
  class IfLocked < Strategy
    def call(&block)
      return :open if lock.open?
      _perform(&block)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
redis_lock-0.4.4 lib/redis_lock/if_locked.rb
redis_lock-0.4.3 lib/redis_lock/if_locked.rb
redis_lock-0.4.2 lib/redis_lock/if_locked.rb