Recursive Result retry helper vs supervised OTP task: which keeps a Gleam write from running twice?
I am designing a Gleam service that must retry a write operation after transient failures, but the write is not idempotent, so a duplicate execution would corrupt state. Two documented approaches seem viable, and I cannot decide between them. The first is a plain recursive helper: wrap the write in a function returning Result , and recurse only on Error , ca