unquick
v0.0.4
Published
Ensures that the function will be executed for at least the specified time
Maintainers
Readme
unquick
Ensures that the function will be executed for at least the specified time.
FAQ
Q: Why not p-min-delay?
A: Because
p-min-delayworks with promise, not function.
Install
npm i unquickUsage
const unquick = require('unquick');
const runForAtLeast1000ms = unquick(fn, delay);fn- any sync or async function.delay- number of milliseconds.
Returns async function, that takes same parameters as fn and do the same things, but do it at least delay milliseconds or longer.
License
MIT
