forge-lcdl

`until_ok`

until_ok(body, predicate, max_iterations, on_retry=None) calls body(i) until predicate(value) is true or the cap is hit. Returns (last_value, True) on success or (last_value, False) if exhausted. Use for bounded “retry…

until_ok

until_ok(body, predicate, max_iterations, on_retry=None) calls body(i) until predicate(value) is true or the cap is hit. Returns (last_value, True) on success or (last_value, False) if exhausted. Use for bounded “retry until parse succeeds” loops.