静态方法:AbortSignal.any(signals)
¥Static method: AbortSignal.any(signals)
-
signals
<AbortSignal[]> 其中的AbortSignal
组成了新的AbortSignal
。¥
signals
<AbortSignal[]> TheAbortSignal
s of which to compose a newAbortSignal
.
返回一个新的 AbortSignal
,如果任何提供的信号被中止,它将被中止。它的 abortSignal.reason
将设置为导致它中止的 signals
中的任何一个。
¥Returns a new AbortSignal
which will be aborted if any of the provided
signals are aborted. Its abortSignal.reason
will be set to whichever
one of the signals
caused it to be aborted.