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

Function decInterruptFolds

interpreter/decorators.go:65–74  ·  view source on GitHub ↗

decInterruptFolds creates an intepretable decorator which marks comprehensions as interruptable where the interrupt state is communicated via a hidden variable on the Activation.

()

Source from the content-addressed store, hash-verified

63// decInterruptFolds creates an intepretable decorator which marks comprehensions as interruptable
64// where the interrupt state is communicated via a hidden variable on the Activation.
65func decInterruptFolds() InterpretableDecoratorV2 {
66 return func(i InterpretableV2) (InterpretableV2, error) {
67 fold, ok := i.(*evalFold)
68 if !ok {
69 return i, nil
70 }
71 fold.interruptable = true
72 return fold, nil
73 }
74}
75
76// decDisableShortcircuits ensures that all branches of an expression will be evaluated, no short-circuiting.
77func decDisableShortcircuits() InterpretableDecoratorV2 {

Callers 1

InterruptableEvalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected