An open API service indexing awesome lists of open source software.

https://github.com/clearcodehq/npm-synchronous-timeout


https://github.com/clearcodehq/npm-synchronous-timeout

Last synced: 10 months ago
JSON representation

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
```