Invoke factory repeatedly until it produces ok or times attempts are
exhausted. Returns the last result.
Factories must return a ResultAsync. If one rejects (rather than
resolving to err), the rejection propagates immediately and no further
retries are attempted — wrap throwing code with fromPromise/fromAsync
so failures become typed err values.
Invoke
factoryrepeatedly until it producesokortimesattempts are exhausted. Returns the last result.Factories must return a ResultAsync. If one rejects (rather than resolving to
err), the rejection propagates immediately and no further retries are attempted — wrap throwing code withfromPromise/fromAsyncso failures become typederrvalues.