Skip to content

ResourceLockComponentLockForPathParams.abortController?

ResourceLockComponentLockForPathParams › abortController?

Type: AbortController

An optional AbortController associated with the lock. When a lock indicator is clicked (with any mouse button) and the user confirms an unlock, the "Unlock active note" command runs, or ResourceLockComponent.requestUnlockForPath / requestResourceUnlockForPath is called for the path, this controller is aborted so the operation holding the lock can cancel itself. Unless ResourceLockComponentLockForPathParams.shouldReleaseOnAbort is set, the operation is expected to release the lock in its own cleanup. When omitted, an unlock still releases the lock but cannot cancel the operation that took it.