Creates an AbortSignal with a timeout in milliseconds, optionally composed with an existing parent signal.
The returned signal provides a cleanup() method to detach listeners from the parent signal early.
Parameters
ms: number
Timeout duration in milliseconds
OptionalparentSignal: AbortSignal
Optional parent AbortSignal to combine with the timeout
Returns AbortSignal
An AbortSignal that aborts when either the timeout expires or the parent signal aborts
Creates an AbortSignal with a timeout in milliseconds, optionally composed with an existing parent signal. The returned signal provides a
cleanup()method to detach listeners from the parent signal early.