UNPKG

@itwin/core-backend

Version:
24 lines 1.11 kB
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *--------------------------------------------------------------------------------------------*/ import { _close, _elementWasCreated, _implementationProhibited, _releaseAllLocks } from "./Symbols"; /** A null-implementation of LockControl that does not attempt to limit access between briefcases. This relies on change-merging to resolve conflicts. */ class NoLocks { [_implementationProhibited] = undefined; get isServerBased() { return false; } [_close]() { } clearAllLocks() { } holdsExclusiveLock() { return false; } holdsSharedLock() { return false; } checkExclusiveLock() { } checkSharedLock() { } [_elementWasCreated]() { } async acquireLocks() { } async [_releaseAllLocks]() { } async releaseAllLocks() { } } export function createNoOpLockControl() { return new NoLocks(); } //# sourceMappingURL=NoLocks.js.map