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

Function decInterruptFolds

interpreter/decorators.go:67–76  ·  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

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

Callers 1

InterruptableEvalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected