@itwin/core-backend
Version:
iTwin.js backend components
27 lines • 1.22 kB
JavaScript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.createNoOpLockControl = createNoOpLockControl;
const Symbols_1 = require("./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 {
[Symbols_1._implementationProhibited] = undefined;
get isServerBased() { return false; }
[Symbols_1._close]() { }
clearAllLocks() { }
holdsExclusiveLock() { return false; }
holdsSharedLock() { return false; }
checkExclusiveLock() { }
checkSharedLock() { }
[Symbols_1._elementWasCreated]() { }
async acquireLocks() { }
async [Symbols_1._releaseAllLocks]() { }
async releaseAllLocks() { }
}
function createNoOpLockControl() {
return new NoLocks();
}
//# sourceMappingURL=NoLocks.js.map
;