omnibelt/sleep.js

/**
 * An async function that just waits to resolve
 *
 * @signature Number -> Promise
 */
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));

module.exports = sleep;