SelectListener.minimize

Minimizes the connection pool to n connections by deleting idle connection objects. If more than n connections are currently busy, all idle connections are deleted.

class SelectListener(T : IConnectionHandler, Args...)
size_t
minimize
(
uint n = 0
)
out (still_existent) { assert (still_existent >= n); }

Parameters

n uint

minimum number of connection objects to keep in the pool.

Return Value

Type: size_t

the number of connection object in the pool after minimizing, which is the greater of n and the number of currently busy connections.

Meta