maybeEvictProviderPool function
Implementation
void maybeEvictProviderPool({
required String reason,
required void Function() reset,
}) {
if (!poolEvictionEnabled) return;
reset();
// always: the knob must log its action even with the trace off (AC5).
emitConnTrace(
ConnTraceKind.poolEvicted,
poolEvictedLine(reason),
always: true,
);
}