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

Function resolveAsyncMaxConcurrency

cel/program.go:599–604  ·  view source on GitHub ↗

resolveAsyncMaxConcurrency maps the configured concurrency to the effective launch limit: - 0 (unset): apply defaultAsyncMaxConcurrency. - >0: use the configured value. - <0: unlimited (no launch limiter); use only if the caller bounds concurrency another way.

(configured int)

Source from the content-addressed store, hash-verified

597// - >0: use the configured value.
598// - <0: unlimited (no launch limiter); use only if the caller bounds concurrency another way.
599func resolveAsyncMaxConcurrency(configured int) int {
600 if configured == 0 {
601 return defaultAsyncMaxConcurrency
602 }
603 return configured
604}
605
606// resolveCompletionBufferSize returns the size of the async completion channel. When unset, it
607// defaults to the effective launch concurrency so that all in-flight calls can report completion

Callers 2

newAsyncFrameMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected