0.9.0 • Published 7 years ago

@clearcodehq/synchronous-timeout v0.9.0

Weekly downloads
49
License
MIT
Repository
github
Last release
7 years ago

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