1.0.0 • Published 8 years ago
promise-deadline v1.0.0
promise-deadline
Usage
.deadline(promise, milliseconds)
Wraps a promise with a deadline. If the promise is not completed by the deadline, it will be rejected with a DeadlineError.
- param {Promise} promise
- param {number} milliseconds
- returns {Promise}
1.0.0
8 years ago