0.1.1 • Published 7 years ago
timeout-wrap v0.1.1
timeout-wrap
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
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- 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