{"size": 692, "ext": "js", "max_stars_repo_path": "packages/adapter/lib/utils/index.js", "max_stars_repo_name": "WapoZeusTechnology/zeus-technology", "max_stars_repo_stars_event_min_datetime": "2019-11-20T19:45:03.000Z", "max_stars_repo_stars_event_max_datetime": "2020-10-26T18:20:39.000Z", "max_issues_repo_path": "packages/adapter/lib/utils/index.js", "max_issues_repo_name": "WapoZeusTechnology/zeus-technology", "max_issues_repo_issues_event_min_datetime": "2019-10-09T20:14:28.000Z", "max_issues_repo_issues_event_max_datetime": "2021-09-01T22:21:45.000Z", "max_forks_repo_path": "packages/adapter/lib/utils/index.js", "max_forks_repo_name": "WapoZeusTechnology/zeus-technology", "max_forks_repo_forks_event_min_datetime": "2020-01-16T16:42:12.000Z", "max_forks_repo_forks_event_max_datetime": "2020-01-16T16:42:12.000Z"}
{"max_stars_count": 2, "max_issues_count": 10, "max_forks_count": 1, "avg_line_length": 40.7058823529, "max_line_length": 98, "alphanum_fraction": 0.710982659}
/**
 * Function that returns a promise that will resolve after the provided delay
 * @param {Number} ms Time in milliseconds to delay
 * @return {Promise} Promise that will resolve after `ms` delay.
 */
export const delay = ms => new Promise(resolve => setTimeout(resolve, ms));

/**
 * Function that returns a promise that will reject with an Error containing the message after the
 * provided delay
 * @param {String} message Message to
 * @param {Number} ms Time in milliseconds to delay
 * @return {Promise} Promise that will reject with {Error} after `ms` delay.
 */
export const timeout = (message, ms) =>
  new Promise((_, reject) => setTimeout(() => reject(new Error(message)), ms));
