Skip to content

ReqorTimeoutConfig

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

Properties

.onTimeout?: (retryNumber?: number) => any;

Function that executes after a timeout

Important

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

.time: number;

Amount of timeout for a attempt

Important

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