fetchWithTimeout
FitFileViewer - API Documentation v30.0.1
FitFileViewer - API Documentation / utils/net/networkUtils / fetchWithTimeout
Function: fetchWithTimeout()
fetchWithTimeout(
url:string,timeoutMs:number,init?:RequestInit,runtime?:NetworkUtilsRuntime):Promise<Response>
Defined in: utils/net/networkUtils.ts:22
Best-effort fetch with a timeout.
Parametersβ
urlβ
string
URL to fetch.
timeoutMsβ
number
Timeout in milliseconds.
init?β
RequestInit = {}
Optional fetch init.
runtime?β
NetworkUtilsRuntime = ...
Returnsβ
Promise<Response>
The fetch response.