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)
| 597 | // - >0: use the configured value. |
| 598 | // - <0: unlimited (no launch limiter); use only if the caller bounds concurrency another way. |
| 599 | func 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 |
no outgoing calls
no test coverage detected