Urara-Blog/node_modules/.pnpm-store/v3/files/5b/e58665c2900bbf29a5da526e706bfda24faed4b6c4b9959bf3ca8ba041fccdd40e241cbf11daf8de087d4a0d6c9a655ee022783e9d66ef78baea534e5e8a35
2022-08-14 01:14:53 +08:00

21 lines
535 B
Text

/*
Copyright 2019 Google LLC
Use of this source code is governed by an MIT-style
license that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
*/
import '../_version.js';
/**
* Returns a promise that resolves and the passed number of milliseconds.
* This utility is an async/await-friendly version of `setTimeout`.
*
* @param {number} ms
* @return {Promise}
* @private
*/
export function timeout(ms: number): Promise<unknown> {
return new Promise((resolve) => setTimeout(resolve, ms));
}