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