The time to sleep, in seconds.
Optionalabort: null | ReadonlyAbortIf provided, will reject the returned promise with the signal's abort reason when aborted. If the signal is already aborted and time is less than or equal to zero, the abort signal takes precedence.
Returns a promise that resolves after the given amount of time.
Usage example: