mirror of
https://github.com/astefanutti/decktape.git
synced 2024-09-11 14:25:44 +03:00
BREAKING CHANGE: Please run node 12.20 or higher BREAKING CHANGE: This package is now a pure esm, please [read this](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c)
8 lines
198 B
JavaScript
8 lines
198 B
JavaScript
'use strict';
|
|
|
|
export const delay = delay => value => new Promise(resolve => setTimeout(resolve, delay, value));
|
|
|
|
export const pause = ms => delay(ms)();
|
|
|
|
export const wait = ms => () => delay(ms);
|