MCPcopy Create free account
hub / github.com/cel-expr/cel-go / InterruptCheckFrequency

Function InterruptCheckFrequency

cel/options.go:746–751  ·  view source on GitHub ↗

InterruptCheckFrequency configures the number of iterations within a comprehension to evaluate before checking whether the function evaluation has been interrupted.

(checkFrequency uint)

Source from the content-addressed store, hash-verified

744// InterruptCheckFrequency configures the number of iterations within a comprehension to evaluate
745// before checking whether the function evaluation has been interrupted.
746func InterruptCheckFrequency(checkFrequency uint) ProgramOption {
747 return func(p *prog) (*prog, error) {
748 p.interruptCheckFrequency = checkFrequency
749 return p, nil
750 }
751}
752
753// AsyncCallObserver sets the observer for monitoring asynchronous function calls during ConcurrentEval.
754func AsyncCallObserver(observer async.Observer) ProgramOption {

Callers 5

Example_cel_ContextEvalFunction · 0.92
TestEvalFunction · 0.85
TestContextEvalFunction · 0.85
TestContextEvalUnknownsFunction · 0.85
BenchmarkContextEvalFunction · 0.85

Calls

no outgoing calls

Tested by 5

Example_cel_ContextEvalFunction · 0.74
TestEvalFunction · 0.68
TestContextEvalFunction · 0.68
TestContextEvalUnknownsFunction · 0.68
BenchmarkContextEvalFunction · 0.68