Implementing Retry Logic with Changing Effects Based on Retry Count

What's the best way to implement retry logic where the underlying effect being retried changes based on the # of retries. Ideally I want an api that works something like Effect.retryFn(retryCount => effectToRetry(retryCount), { while: ... })
Was this page helpful?