Promisified setTimeout
npm i @iocmd/wait
await wait(console.log, 'hello');
// log "hello" in next loop
await wait(1000, console.log, 'hello');
// log "hello" in a second
await wait(1000);
// wait for a second-
hold-up - setInterval with promises, counter and error handling
-
currify - translate the evaluation of a function that takes multiple arguments into evaluating a sequence of functions, each with a single or more arguments
-
fullstore - functional variables
-
wraptile - translate the evaluation of a function that takes multiple arguments into evaluating a sequence of 2 functions, each with a any count of arguments
MIT