- Preparing search index...
- The search index is not available
matrix-js-sdk
Function retryNetworkOperation
- retryNetworkOperation<T>(maxAttempts: number, callback: (() => Promise<T>)): Promise<T>
-
Parameters
-
maxAttempts: number
-
callback: (() => Promise<T>)
Retries a network operation run in a callback.
Returns
the result of the network operation
Throws
ConnectionError If after maxAttempts the callback still throws ConnectionError