SetMaxIterations updates the maximum iterations limit.
(maxIter int)
| 554 | |
| 555 | // SetMaxIterations updates the maximum iterations limit. |
| 556 | func (l *Loop) SetMaxIterations(maxIter int) { |
| 557 | l.mu.Lock() |
| 558 | defer l.mu.Unlock() |
| 559 | l.maxIter = maxIter |
| 560 | } |
| 561 | |
| 562 | // MaxIterations returns the current max iterations limit. |
| 563 | func (l *Loop) MaxIterations() int { |
no outgoing calls