Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Promisify Wait

Promisify wait is a simple function to await timeout

Installation

To use promisify-wait in your project, using npm:

npm install promisify-wait

or using yarn:

yarn add promisify-wait

Usage

import wait, { DURATION_UNIT } from "promisify-wait";

# wait 1000 milliseconds
await wait(1000) #Default in millisecond

# wait 10 seconds
await wait(10, DURATION_UNIT.SECOND)

# wait 1 minute 
await wait(1, DURATION_UNIT.MINUTE)

# wait 1 hour
await wait(1, DURATION_UNIT.HOUR)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages