UNPKG

@itwin/insights-client

Version:

Insights client for the iTwin platform

15 lines 729 B
"use strict"; /*--------------------------------------------------------------------------------------------- * 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.delay = delay; /** * Creates a promise that when awaited will result in the provided time delay. * @param duration Duration of the needed delay in milliseconds. */ async function delay(duration) { await new Promise((resolve) => setTimeout(resolve, duration)); } //# sourceMappingURL=Utils.js.map