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

Function resolveAsyncMaxConcurrency

cel/program.go:480–485  ·  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

478// - >0: use the configured value.
479// - <0: unlimited (no launch limiter); use only if the caller bounds concurrency another way.
480func resolveAsyncMaxConcurrency(configured int) int {
481 if configured == 0 {
482 return defaultAsyncMaxConcurrency
483 }
484 return configured
485}
486
487// resolveCompletionBufferSize returns the size of the async completion channel. When unset, it
488// 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