@slack/web-api
Version:
Official library for using the Slack Platform's Web API
14 lines • 408 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = delay;
/**
* Build a Promise that will resolve after the specified number of milliseconds.
* @param ms milliseconds to wait
* @param value value for eventual resolution
*/
function delay(ms) {
return new Promise((resolve) => {
setTimeout(resolve, ms);
});
}
//# sourceMappingURL=helpers.js.map