timeout

open override fun timeout(time: Int): AbortSignal

The timeout static method returns an AbortSignal that will automatically abort after a specified time.

MDN Reference

Return

Configured AbortSignal instance.

Parameters

time

Timeout value; must be between 0 and maximum safe integer value