UNPKG

@itwin/presentation-frontend

Version:

Frontend of iModel.js Presentation library

17 lines 860 B
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *--------------------------------------------------------------------------------------------*/ /** @internal */ export const imodelInitializationHandlers = new Set(); /** @internal */ export function startIModelInitialization(imodel) { for (const { startInitialization } of imodelInitializationHandlers) { startInitialization(imodel); } } /** @internal */ export async function ensureIModelInitialized(imodel) { await Promise.all([...imodelInitializationHandlers].map(async ({ ensureInitialized }) => ensureInitialized(imodel))); } //# sourceMappingURL=IModelConnectionInitialization.js.map