timeout-wrap

0.1.1 • Public • Published

timeout-wrap

NPM version NPM downloads CircleCI codecov donate

Install

yarn add timeout-wrap

Usage

const wrap = require('timeout-wrap')
const promise = /* raw promise */
const wrappedPromise = wrap(promise, 'default-output', 2000 /* timeout threshold */)

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

timeout-wrap © ULIVZ, Released under the MIT License.
Authored and maintained by ULIVZ with help from contributors (list).

github.com/ULIVZ · GitHub @ULIVZ · Twitter @_ulivz

Readme

Keywords

none

Package Sidebar

Install

npm i timeout-wrap

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

3.74 kB

Total Files

5

Last publish

Collaborators

  • ulivz