chore: Add sleep before Slack notification

This commit is contained in:
Tom Moor
2024-03-08 22:02:20 -05:00
parent 8f996ca2f3
commit 1a454d6dbb
3 changed files with 6 additions and 3 deletions

View File

@@ -3,6 +3,6 @@
*
* @param [delay=1] The number of milliseconds to wait before fulfilling the promise.
*/
export function timeout(ms = 1) {
export function sleep(ms = 1) {
return new Promise((resolve) => setTimeout(resolve, ms));
}