Resetting Retry Attempts in Effect Typescript
"Resetting" retry attempts
Imagine you have a long-running process (possibly via a Stream) that you want to recover with retries. Then, if successfully ran, 'reset' those retry conditions so that on the next failure, the retries start from the beginning again.
Picture this for recovering a websocket connection clientside:
But at once a retry is successful, you'd want the next failure to start from the first schedule again. As this code is, the next failure will pick up where it left off, which makes sense! But is there a simple way to do this or are we getting into custom retry management territory?
