0.1.1 • Published 7 years ago

timeout-wrap v0.1.1

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

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