pool module#

class CircuitPool(circuitDef: type[Circuit], count: int)[source]#

Bases: Circuit

Circuit Pool aggregates a collection of Provide ports from a set of circuit instances.

The conceptual idea here is that we define a circuit that introduces a set of “Provide” ports. Then you pass that circuit to the CircuitPool and we create multiple instances of that circuit. The CircuitPool then proxies all of the provide ports from the individual circuits and pools them together. This allows for provides across different circuits to be used as if they were one big circuit.

Parameters: