I want retry attempt helpers in the core lo package so I can call a callback repeatedly until it succeeds…
I want retry attempt helpers in the core lo package so I can call a callback repeatedly until it succeeds…: a task in MiMo-V2.6-RL-harbor-code: MiMo-V2.6-RL Code (Harbor) (Harbor dataset). Please provide func Attempt(maxIteration int, f func(index int) error) (int, error) . It should call f with…
The task
Please provide `func Attempt(maxIteration int, f func(index int) error) (int, error)`. It should call `f` with zero-based attempt indexes, stop on the first nil error, and return the 1-based number of invocations plus nil. For example, if `f` returns an error for indexes 0 through 4 and nil at index 5, `Attempt(42,…
Part of FineEnvs/MiMo-V2.6-RL-harbor-code.