testing._test_pool

(internal) A pool admitting `max_concurrency` leaves at once. Zero or negative means "no explicit budget": fall back to a bound that keeps a pathological fan-out from creating thousands of live VM threads while staying above any real machine's core count (the CLI always passes an explicit budget).

Reference version

Signature

function testing._test_pool(max_concurrency: int) -> testing._TestPool

(internal) A pool admitting max_concurrency leaves at once. Zero or negative means "no explicit budget": fall back to a bound that keeps a pathological fan-out from creating thousands of live VM threads while staying above any real machine's core count (the CLI always passes an explicit budget).

Source:<builtin>/testing/registry.bamlbytes 1834918654