Run a promise but make sure to wait only a maximum amount of time for it to finish.
The promise to execute
The amount of time in milliseconds to wait for the promise to finish
The promise return value or a timeout error is thrown
Generated using TypeDoc
Run a promise but make sure to wait only a maximum amount of time for it to finish.