Wraps a Promise in a timeout, so that it either resolves or rejects within a specified time limit.
The wrapped Promise.
The original Promise to be wrapped.
The time limit.
Generated using TypeDoc
Wraps a Promise in a timeout, so that it either resolves or rejects within a specified time limit.
Returns
The wrapped Promise.