Sha256: e6f9cda58e050e442b34175204df50d6a02b4a861b10a6772cb2ed3d0c4b6e39

Contents?: true

Size: 140 Bytes

Versions: 2

Compression:

Stored size: 140 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
redis_lock-0.4.1 lib/redis_lock/if_locked.rb
redis_lock-0.4.0 lib/redis_lock/if_locked.rb