Sha256: dd8702baa17dd9e09eeeaaee723d561c3702983bd292a493e964d588c639e06a
Contents?: true
Size: 142 Bytes
Versions: 2
Compression:
Stored size: 142 Bytes
Contents
class RedisLock class IfOpen < Semaphore def call(&block) return :locked if lock.locked? _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_open.rb |
redis_lock-0.4.0 | lib/redis_lock/if_open.rb |