timeout static method

AbortSignal timeout(
  1. int milliseconds
)

Create a new AbortSignal that will automatically abort after the timeout in milliseconds.

The timeout may not be negative

Implementation

external static AbortSignal timeout(final int milliseconds);