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)
| 461 | // - >0: use the configured value. |
| 462 | // - <0: unlimited (no launch limiter); use only if the caller bounds concurrency another way. |
| 463 | func resolveAsyncMaxConcurrency(configured int) int { |
| 464 | if configured == 0 { |
| 465 | return defaultAsyncMaxConcurrency |
| 466 | } |
| 467 | return configured |
| 468 | } |
| 469 | |
| 470 | // resolveCompletionBufferSize returns the size of the async completion channel. When unset, it |
| 471 | // defaults to the effective launch concurrency so that all in-flight calls can report completion |
no outgoing calls
no test coverage detected