API Reference > imodeljs-backend > iModels > ConcurrencyControl > ConcurrencyControl.LocksManager > lockCodeSpecs lockCodeSpecs Method Obtain the CodeSpec lock. This is always an immediate request, never deferred. See LockHandler for details on what errors may be thrown. lockCodeSpecs(requestContext: AuthorizedClientRequestContext): Promise<void> Parameter Type Description requestContext AuthorizedClientRequestContext Returns - Promise<void> Defined in core/backend/src/ConcurrencyControl.ts Line 1287 Last Updated: 12 June, 2024