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

Function InterruptableEval

interpreter/interpreter.go:186–188  ·  view source on GitHub ↗

InterruptableEval annotates comprehension loops with information that indicates they should check the `#interrupted` state within a custom Activation. The custom activation is currently managed higher up in the stack within the 'cel' package and should not require any custom support on behalf of ca

()

Source from the content-addressed store, hash-verified

184// The custom activation is currently managed higher up in the stack within the 'cel' package
185// and should not require any custom support on behalf of callers.
186func InterruptableEval() PlannerOption {
187 return CustomDecoratorV2(decInterruptFolds())
188}
189
190// Optimize will pre-compute operations such as list and map construction and optimize
191// call arguments to set membership tests. The set of optimizations will increase over time.

Callers 2

newProgramFunction · 0.92

Calls 2

decInterruptFoldsFunction · 0.85
CustomDecoratorV2Function · 0.70

Tested by 1