Simple utility for waiting. Returns a promise that will resolve after the
given number of milliseconds. The timer can be aborted if an AbortSignal
is passed as second argument.
Parameters
ms: number
Milliseconds to wait
Optionalsignal: AbortSignal
Pass an AbortSignal if you want to abort the waiting
Simple utility for waiting. Returns a promise that will resolve after the given number of milliseconds. The timer can be aborted if an
AbortSignalis passed as second argument.