Skip to content

ReqorTotalTimeoutConfig

ts
type ReqorTotalTimeoutConfig = {
    time: number;
    onTimeout?: () => any;
};

Properties

.time:number;

Amount of timeout for the whole attempt to connect

Important

If you called Reqor.totalTimeout before, the value will be overriden.

.onTimeout?: () => any;

Function that executes after a total timeout

Important

If you called Reqor.onTotalTimeout before, the value will be overriden.