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

Function ConcurrentDrainStrategy

cel/options.go:787–792  ·  view source on GitHub ↗

ConcurrentDrainStrategy configures the strategy for when to re-evaluate the program during a ConcurrentEval call after receiving asynchronous completion signals. By default, the program re-evaluates immediately after every completion.

(strategy async.DrainStrategy)

Source from the content-addressed store, hash-verified

785// during a ConcurrentEval call after receiving asynchronous completion signals.
786// By default, the program re-evaluates immediately after every completion.
787func ConcurrentDrainStrategy(strategy async.DrainStrategy) ProgramOption {
788 return func(p *prog) (*prog, error) {
789 p.drainStrategy = strategy
790 return p, nil
791 }
792}
793
794// CostEstimatorOptions configure type-check time options for estimating expression cost.
795func CostEstimatorOptions(costOpts ...checker.CostOption) EnvOption {

Callers 3

TestConcurrentEvalFunction · 0.92

Calls

no outgoing calls

Tested by 3

TestConcurrentEvalFunction · 0.74