AbortSignal.timeout(delay)


  • delay <number> 触发 AbortSignal 之前等待的毫秒数。

返回新的 AbortSignal,其将在 delay 毫秒内中止。

  • delay <number> The number of milliseconds to wait before triggering the AbortSignal.

Returns a new AbortSignal which will be aborted in delay milliseconds.