Return the current number of connections in this pool. .. versionadded:: 0.25.0
(self)
| 483 | return self._closed or self._closing |
| 484 | |
| 485 | def get_size(self): |
| 486 | """Return the current number of connections in this pool. |
| 487 | |
| 488 | .. versionadded:: 0.25.0 |
| 489 | """ |
| 490 | return sum(h.is_connected() for h in self._holders) |
| 491 | |
| 492 | def get_min_size(self): |
| 493 | """Return the minimum number of connections in this pool. |