انتقل إلى المحتوى الرئيسي

Interface: SessionLockHold

Defined in: packages/persistence/src/session-lock.ts:84

The lock, held. It is given back once.

Methods​

release()​

release(): Promise<void>

Defined in: packages/persistence/src/session-lock.ts:91

Gives the lock back. A second call returns the first call's outcome.

Returns​

Promise<void>

Throws​

lost: the session did not survive from the take to here, so the lock was not held for the whole of the work.