()
| 83 | return this.maxIterations; |
| 84 | } |
| 85 | |
| 86 | getIterations(): number { |
| 87 | return this.iterations; |
| 88 | } |
| 89 | |
| 90 | /** True when a finite cap is set and we have just crossed it. */ |
| 91 | atIterationCap(): boolean { |
| 92 | return this.maxIterations > 0 && this.iterations > this.maxIterations; |
| 93 | } |
| 94 | |
| 95 | /** Raise the fuse and allow another 80% warning against the new number. */ |