Returns a promise that will reject after the provided number of seconds. If the optional abort signal is aborted, the timer will be canceled and the promise resolved. This is the inverse of sleep
The number of seconds to wait.
Optional
If provided, when aborted (regardless of reason) will resolve the returned promise.
The message to be used in the TimeoutError in case of timeout.
Returns a promise that will reject after the provided number of seconds. If the optional abort signal is aborted, the timer will be canceled and the promise resolved. This is the inverse of sleep