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

Function DrainAll

cel/async/async.go:105–107  ·  view source on GitHub ↗

DrainAll returns a strategy that waits for all currently pending calls to complete before re-evaluating. Note: This strategy is optimal for independent async calls, but will over-wait if some calls depend on the results of others.

()

Source from the content-addressed store, hash-verified

103// Note: This strategy is optimal for independent async calls, but will over-wait
104// if some calls depend on the results of others.
105func DrainAll() DrainStrategy {
106 return drainAll{}
107}
108
109type drainAll struct{}
110

Callers 2

TestConcurrentEvalFunction · 0.92
TestDrainAllFunction · 0.92

Calls

no outgoing calls

Tested by 2

TestConcurrentEvalFunction · 0.74
TestDrainAllFunction · 0.74