Skip to main content
Module

x/slack_web_api/src/helpers.ts

Slack Developer Kit for Node.js
Go to Latest
File
/** * Build a Promise that will resolve after the specified number of milliseconds. * @param ms milliseconds to wait * @param value value for eventual resolution */export function delay(ms: number): Promise<void> { return new Promise((resolve) => { setTimeout(() => resolve(), ms) })}