Blocks until the lock is acquired. This must be called from within a transaction. The lock will be automatically released when the transaction ends.
(ctx context.Context, pgAdvisoryXactLock int64)
| 22 | // This must be called from within a transaction. The lock will be automatically |
| 23 | // released when the transaction ends. |
| 24 | AcquireLock(ctx context.Context, pgAdvisoryXactLock int64) error |
| 25 | // Acquires the lease for a given count of notification messages, to enable concurrent dequeuing and subsequent sending. |
| 26 | // Only rows that aren't already leased (or ones which are leased but have exceeded their lease period) are returned. |
| 27 | // |
no outgoing calls
no test coverage detected