PgORM::Error::LockUnavailable
Inherits PgORM::Error < Exception < Reference < Object
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"
Constructors
new(key : String)
Source