Skip to content
/ unquick Public

Ensures that the function will be executed for at least the specified time

License

Notifications You must be signed in to change notification settings

astur/unquick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unquick

Ensures that the function will be executed for at least the specified time.

Build Status NPM version

FAQ

Q: Why not p-min-delay?

A: Because p-min-delay works with promise, not function.

Install

npm i unquick

Usage

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

About

Ensures that the function will be executed for at least the specified time

Resources

License

Stars

Watchers

Forks

Packages

No packages published