File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 1111
1212- [ ] Do we need handle methods? Or leave simple bool for transaction and callback only for session lock
1313- [ ] Should wait mode be blocking or non-blocking by default?
14- - [ ] Should callback for session lock be at the end of the params?
14+ - [ ] Should callback for session lock be at the end of the params (after optional ones) ?
1515
1616## Introduction
1717
Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ public function acquireSessionLevelLock(
9494 * ⚠️ Transaction-level advisory locks are strongly preferred whenever possible,
9595 * as they are automatically released at the end of a transaction and are less error-prone.
9696 * Use session-level locks only when transactional context is not available.
97+ * @see acquireTransactionLevelLock() for preferred locking strategy.
9798 *
9899 * @param PDO $dbConnection Active database connection.
99100 * @param PostgresLockKey $key Lock key to be acquired.
@@ -105,8 +106,6 @@ public function acquireSessionLevelLock(
105106 * @template TReturn
106107 *
107108 * TODO: Cover with tests
108- *@see acquireTransactionLevelLock() for preferred locking strategy.
109- *
110109 */
111110 public function withinSessionLevelLock (
112111 PDO $ dbConnection ,
You can’t perform that action at this time.
0 commit comments