Skip to content

ResourceLockComponentLockForPathParams.shouldReleaseOnAbort?

ResourceLockComponentLockForPathParams › shouldReleaseOnAbort?

Type: boolean

When true, the lock releases itself the moment its ResourceLockComponentLockForPathParams.abortController is aborted, instead of relying on the owning operation to release it in its own cleanup. Use it for a lock held **indefinitely** outside a using scope (so there is no finally to release it) — e.g. a lock that stays until the user explicitly unlocks. Leave it false for a transactional operation that holds the lock through its own abort-driven rollback and releases it via using at scope exit. Has no effect without an ResourceLockComponentLockForPathParams.abortController.