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

Function InterruptableEval

interpreter/interpreter.go:195–197  ·  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

193// The custom activation is currently managed higher up in the stack within the 'cel' package
194// and should not require any custom support on behalf of callers.
195func InterruptableEval() PlannerOption {
196 return CustomDecoratorV2(decInterruptFolds())
197}
198
199// Optimize will pre-compute operations such as list and map construction and optimize
200// 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