@itwin/insights-client
Version:
Insights client for the iTwin platform
12 lines • 636 B
JavaScript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/**
* Creates a promise that when awaited will result in the provided time delay.
* @param duration Duration of the needed delay in milliseconds.
*/
export async function delay(duration) {
await new Promise((resolve) => setTimeout(resolve, duration));
}
//# sourceMappingURL=Utils.js.map