Exception: RedisLocks::SemaphoreUnavailable
- Inherits:
-
ResourceUnavailable
- Object
- RuntimeError
- LockError
- ResourceUnavailable
- RedisLocks::SemaphoreUnavailable
- Defined in:
- lib/redis_locks/semaphore.rb
Instance Method Summary collapse
-
#initialize(key, resources) ⇒ SemaphoreUnavailable
constructor
A new instance of SemaphoreUnavailable.
Constructor Details
#initialize(key, resources) ⇒ SemaphoreUnavailable
Returns a new instance of SemaphoreUnavailable.
30 31 32 |
# File 'lib/redis_locks/semaphore.rb', line 30 def initialize(key, resources) super("Key [#{key}] has 0/#{resources} resources available!") end |