The duration to wait in milliseconds.
Optionalsignal: AbortSignal
Optional signal that cancels the wait.
OptionalrequestId: string
Correlation ID stamped onto the abort error, when available.
A promise that resolves after the delay, or rejects on abort.
Resolves after
ms, or rejects with anABORTEDAniLinkNetworkError stamped withrequestIdwhen the suppliedAbortSignalfires first (including one that aborted before the call).The timer is
unref-ed so it never keeps the event loop alive on its own.