withRetry static method

NeatStatusProvider withRetry(
  1. NeatStatusProvider provider, {
  2. RetryOptions options = const RetryOptions(),
})

Wrap a NeatStatusProvider such that get/set are retried on any Exception.

While not ideal, fetching a status object is usually low-overhead, so unnecessary retries are cheap.

Implementation

static NeatStatusProvider withRetry(NeatStatusProvider provider,
        {RetryOptions options = const RetryOptions()}) =>
    _NeatStatusProviderWithRetry(provider, options);