mirror of
https://github.com/astefanutti/decktape.git
synced 2024-12-12 13:49:13 +03:00
10 lines
334 B
JavaScript
10 lines
334 B
JavaScript
'use strict';
|
|
|
|
module.exports.call = f => async val => { await f(val); return val };
|
|
|
|
module.exports.delay = delay => value => new Promise(resolve => setTimeout(resolve, delay, value));
|
|
|
|
module.exports.pause = delay => new Promise(resolve => setTimeout(resolve, delay));
|
|
|
|
module.exports.wait = ms => () => module.exports.delay(ms);
|