Creates a Promise that resolves after a managed timeout.
The returned Promise has two additional methods:
proceed()
cancel()
Optional
Delay in milliseconds.
Object providing timer functions.
Promise that resolves after the timeout.
Creates a Promise that resolves after a managed timeout.
The returned Promise has two additional methods:
proceed()clears the timer and resolves the Promise.cancel()clears the timer and rejects the Promise.