testing._TestPool

(internal) Global gate on concurrently RUNNING leaf test bodies. A leaf acquires a slot BEFORE its body is spawned, so a gated test costs nothing — no VM thread, no watchdog timer — until a slot frees. One pool is shared by the whole run (threaded down through every nested testset), so the limit is a run-wide invariant rather than a per-testset one.

Reference version

Signature

class testing._TestPool

(internal) Global gate on concurrently RUNNING leaf test bodies. A leaf acquires a slot BEFORE its body is spawned, so a gated test costs nothing — no VM thread, no watchdog timer — until a slot frees. One pool is shared by the whole run (threaded down through every nested testset), so the limit is a run-wide invariant rather than a per-testset one.

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

Fields

tokens

int[]

Instance methods

function

acquire

(self) -> null
function

release

(self) -> null