Urara-Blog/node_modules/.pnpm-store/v3/files/71/6cf0b726bf2d6c36dfcc6f75bb7ca74e50810a74c8efffe4cc834d2a6b1cf50969539cfaf5179a16dd4c5068496565c92985d3d5231e2a777d635bb30902b3
2022-08-14 01:14:53 +08:00

18 lines
508 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) {
return new Promise((resolve) => setTimeout(resolve, ms));
}