API Reference > imodeljs-backend > iModels > ConcurrencyControl > 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<Lock[]> Parameter Type Description requestContext AuthorizedClientRequestContext Returns - Promise<Lock[]> Defined in core/backend/src/ConcurrencyControl.ts Line 459 Last Updated: 13 June, 2024