https://github.com/clearcodehq/npm-synchronous-timeout
https://github.com/clearcodehq/npm-synchronous-timeout
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/clearcodehq/npm-synchronous-timeout
- Owner: ClearcodeHQ
- License: mit
- Created: 2018-03-09T09:55:33.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-15T08:56:55.000Z (over 8 years ago)
- Last Synced: 2025-08-08T14:46:17.436Z (11 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 2
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Synchronous timeout
A simple utility that allows you to set a synchronous timeout in your application.
## Installation
Add to your dependencies:
```
"dependencies": {
"synchronous-timeout": "https://github.com/ClearcodeHQ/npm-synchronous-timeout.git"
}
```
# Usage
```
const timeout = require("sychronous-timeout");
await timeout(5000); //set in miliseconds
```