Returns a promise that will be fulfilled with the given promise's fulfillment
value or rejection reason. However, if the promise is not resolved within
ms milliseconds, the returned promise is rejected with an error.
Type Parameters
T
Parameters
ms: number
The number of milliseconds to wait for the promise to resolve.
Returns a promise that will be fulfilled with the given promise's fulfillment value or rejection reason. However, if the promise is not resolved within
msmilliseconds, the returned promise is rejected with an error.