MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / SetMaxIterations

Method SetMaxIterations

internal/loop/loop.go:556–560  ·  view source on GitHub ↗

SetMaxIterations updates the maximum iterations limit.

(maxIter int)

Source from the content-addressed store, hash-verified

554
555// SetMaxIterations updates the maximum iterations limit.
556func (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.
563func (l *Loop) MaxIterations() int {

Callers 2

adjustMaxIterationsMethod · 0.45

Calls

no outgoing calls

Tested by 1