feat: complete Ancestor quote bot with production-ready Docker support
This commit is contained in:
14
node_modules/matrix-js-sdk/lib/http-api/utils.d.ts
generated
vendored
14
node_modules/matrix-js-sdk/lib/http-api/utils.d.ts
generated
vendored
@@ -1,7 +1,7 @@
|
||||
export declare function timeoutSignal(ms: number): AbortSignal;
|
||||
export declare function anySignal(signals: AbortSignal[]): {
|
||||
signal: AbortSignal;
|
||||
cleanup(this: void): void;
|
||||
cleanup(): void;
|
||||
};
|
||||
/**
|
||||
* Attempt to turn an HTTP error response into a Javascript Error.
|
||||
@@ -22,16 +22,4 @@ export declare function parseErrorResponse(response: XMLHttpRequest | Response,
|
||||
* @throws {@link ConnectionError} If after maxAttempts the callback still throws ConnectionError
|
||||
*/
|
||||
export declare function retryNetworkOperation<T>(maxAttempts: number, callback: () => Promise<T>): Promise<T>;
|
||||
/**
|
||||
* Calculate the backoff time for a request retry attempt.
|
||||
* This produces wait times of 2, 4, 8, and 16 seconds (30s total) after which we give up. If the
|
||||
* failure was due to a rate limited request, the time specified in the error is returned.
|
||||
*
|
||||
* Returns -1 if the error is not retryable, or if we reach the maximum number of attempts.
|
||||
*
|
||||
* @param err - The error thrown by the http call
|
||||
* @param attempts - The number of attempts made so far, including the one that just failed.
|
||||
* @param retryConnectionError - Whether to retry on {@link ConnectionError} (CORS, connection is down, etc.)
|
||||
*/
|
||||
export declare function calculateRetryBackoff(err: any, attempts: number, retryConnectionError: boolean): number;
|
||||
//# sourceMappingURL=utils.d.ts.map
|
||||
Reference in New Issue
Block a user