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

Function DrainReady

cel/async/async.go:82–84  ·  view source on GitHub ↗

DrainReady returns a strategy that waits for a short duration after the first completion to batch any other functions that complete at roughly the same time.

(debounce time.Duration)

Source from the content-addressed store, hash-verified

80// DrainReady returns a strategy that waits for a short duration after the first
81// completion to batch any other functions that complete at roughly the same time.
82func DrainReady(debounce time.Duration) DrainStrategy {
83 return drainReady{debounce: debounce}
84}
85
86type drainReady struct {
87 debounce time.Duration

Callers 5

newProgramFunction · 0.92
TestConcurrentEvalFunction · 0.92
TestDrainReadyFunction · 0.92

Calls

no outgoing calls

Tested by 4

TestConcurrentEvalFunction · 0.74
TestDrainReadyFunction · 0.74