¥Static method: AbortSignal.timeout(delay)
AbortSignal.timeout(delay)
delay <number> 触发 AbortSignal 之前等待的毫秒数。
delay
¥delay <number> The number of milliseconds to wait before triggering the AbortSignal.
返回新的 AbortSignal,其将在 delay 毫秒内中止。
AbortSignal
¥Returns a new AbortSignal which will be aborted in delay milliseconds.