https://github.com/alanfriedman/waitms
Promise-based timeouts
https://github.com/alanfriedman/waitms
delay settimeout sleep timeout wait
Last synced: 2 months ago
JSON representation
Promise-based timeouts
- Host: GitHub
- URL: https://github.com/alanfriedman/waitms
- Owner: alanfriedman
- Created: 2019-11-25T11:14:35.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-25T14:31:59.000Z (over 5 years ago)
- Last Synced: 2025-02-13T11:45:48.419Z (4 months ago)
- Topics: delay, settimeout, sleep, timeout, wait
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# waitms
Promise-based timeouts
## Usage
- Asynchronous. Returns a Promise
- Defaults to 500ms```
const wait = require('waitms');await wait(); // 500ms
await wait(5000); // 5s
```