const delayed1 = pMinDelay(fn, 1000)
const delayed2 = pMinDelay(fn, 1000, {delayRejection: false})
delayed1()
takes at least 1s to settle.
delayed2()
takes at least 1s to resolve.
I have similar function in my recent project accepts both Promise and function, I called it slowDown
.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too