"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.sleep = void 0;
/**
 * timers/promises 版 setTimeout
 * 运行环境 node 版本为 12，还不支持 node16 的新特性 promise timer，故封装一遍
 */
const sleep = (time) => new Promise((resolve) => {
    setTimeout(() => {
        resolve(null);
    }, time);
});
exports.sleep = sleep;
