GitHub

PoolConfig

API reference for PoolConfig.

A pool's settings. acquire runs with the services in scope when the pool was made; target_utilization is clamped to [0.1, 1].

Attributes

AttributeTypeDescription
acquireEffect[A, E, Any]
concurrencyint
is_fixedbool
min_sizeint
max_sizeint
strategyStrategy[A, E]
target_utilizationfloat

Functions

__init__

__init__(acquire, concurrency, is_fixed, min_size, max_size, strategy, target_utilization) -> None
ParameterTypeDescription
acquireEffect[A, E, Any]
concurrencyint
is_fixedbool
min_sizeint
max_sizeint
strategyStrategy[A, E]
target_utilizationfloat