@itwin/core-backend
Version:
iTwin.js backend components
24 lines • 1.11 kB
JavaScript
/*---------------------------------------------------------------------------------------------
* 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