Retries a network operation run in a callback.
the result of the network operation
If after maxAttempts the callback still throws ConnectionError
maximum attempts to try
callback that returns a promise of the network operation. If rejected with ConnectionError, it will be retried by calling the callback again.
Generated using TypeDoc
Retries a network operation run in a callback.
Returns
the result of the network operation
Throws
If after maxAttempts the callback still throws ConnectionError