{"size": 288, "ext": "js", "max_stars_repo_path": "build/util/sleep.js", "max_stars_repo_name": "xunzhaotech/aotoo-hub", "max_stars_repo_stars_event_min_datetime": "2018-08-28T10:07:12.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-13T19:49:11.000Z", "max_issues_repo_path": "build/util/sleep.js", "max_issues_repo_name": "lhxktxwd/aotoo-hub", "max_issues_repo_issues_event_min_datetime": "2021-01-06T08:16:51.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-27T10:48:38.000Z", "max_forks_repo_path": "build/util/sleep.js", "max_forks_repo_name": "lhxktxwd/aotoo-hub", "max_forks_repo_forks_event_min_datetime": "2018-12-25T11:40:28.000Z", "max_forks_repo_forks_event_max_datetime": "2021-09-30T08:46:48.000Z"}
{"max_stars_count": 77, "max_issues_count": 3, "max_forks_count": 19, "avg_line_length": 20.5714285714, "max_line_length": 62, "alphanum_fraction": 0.5590277778}
function* sleep(delay, desc) {
  return new Promise((res, rej) => {
    setTimeout(() => {
      if (desc) {
        console.log(desc);
      }
      console.log(`waiting for ${delay} millisecond to next`);
      return res(true)
    }, delay);
  })
}

// 通过生成器延时几秒
module.exports = sleep