delay-promise-func
Function that returns promise that wait specified milliseconds and then call specified function.
Example
const delayed = require('delay-promise-func');
const p = (url) => require('axios').get(url);
const delayed_p = delayed(p, 500);
delayed_p(url).then(res => {
//will call axios's get() after 500ms of waiting
})