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}