class PgORM::PgAdvisoryLock
- PgORM::PgAdvisoryLock
- Reference
- Object
Overview
Postgresql Advisory Locks for ::PgORM
Included Modules
- JSON::Serializable
- YAML::Serializable
Extended Modules
Defined in:
pg-orm/lock.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(key : String, timeout : Time::Span | Nil = nil)
Class Method Summary
Instance Method Summary
- #lock(timeout : Time::Span = self.timeout) : Nil
- #locked? : Bool
- #synchronize(**options, &)
-
#timeout : Time::Span
Lock acquisition timeout
-
#timeout=(timeout : Time::Span)
Lock acquisition timeout
- #try_lock
- #unlock : Nil