Returns a promise that resolves after a delay.
Optional
the number of miliseconds to wait before resolving the promise. Defaults to 0.
Promise that resolves after the specified delay.
Returns a promise that resolves after a delay.