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

Function InterruptCheckFrequency

cel/options.go:731–736  ·  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

729// InterruptCheckFrequency configures the number of iterations within a comprehension to evaluate
730// before checking whether the function evaluation has been interrupted.
731func InterruptCheckFrequency(checkFrequency uint) ProgramOption {
732 return func(p *prog) (*prog, error) {
733 p.interruptCheckFrequency = checkFrequency
734 return p, nil
735 }
736}
737
738// CostEstimatorOptions configure type-check time options for estimating expression cost.
739func CostEstimatorOptions(costOpts ...checker.CostOption) EnvOption {

Callers 4

TestEvalFunction · 0.85
TestContextEvalFunction · 0.85
TestContextEvalUnknownsFunction · 0.85
BenchmarkContextEvalFunction · 0.85

Calls

no outgoing calls

Tested by 4

TestEvalFunction · 0.68
TestContextEvalFunction · 0.68
TestContextEvalUnknownsFunction · 0.68
BenchmarkContextEvalFunction · 0.68