@statesync/core / withRetryReporting
Function: withRetryReporting()
ts
function withRetryReporting<T>(provider, options): SnapshotProvider<T>;Defined in: retry.ts:85
Convenience wrapper: retries a provider and reports retry attempts via logger/onError.
Note: the final failure is still thrown by the provider; the engine will emit its own getSnapshot error on that final failure. This wrapper is mainly for visibility into intermediate retry attempts.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type |
|---|---|
provider | SnapshotProvider<T> |
options | RetryReportingOptions |