LoopMax sets the hard iteration cap — the budget guardrail. The loop never runs the body more than n times, so it always terminates even when the stop condition never fires. Default 10.
(n int)
| 29 | // runs the body more than n times, so it always terminates even when the |
| 30 | // stop condition never fires. Default 10. |
| 31 | func LoopMax(n int) LoopOption { return func(o *LoopOptions) { o.Max = n } } |
| 32 | |
| 33 | // Until stops the loop when cond returns true after an iteration — a |
| 34 | // deterministic, code-defined exit condition. |
no outgoing calls
searching dependent graphs…