class
PgORM::Error::LockUnavailable
- PgORM::Error::LockUnavailable
- PgORM::Error
- Exception
- Reference
- Object
Overview
Raised when an advisory lock cannot be acquired within the timeout.
Example
lock = PgORM::PgAdvisoryLock.new("my_lock")
lock.timeout = 1.second
# If another process holds the lock for > 1 second
lock.lock # Raises LockUnavailable: "Lock (my_lock) unavailable"