Return the current number of connections in this pool. .. versionadded:: 0.25.0
(self)
| 589 | return self._closed or self._closing |
| 590 | |
| 591 | def get_size(self): |
| 592 | """Return the current number of connections in this pool. |
| 593 | |
| 594 | .. versionadded:: 0.25.0 |
| 595 | """ |
| 596 | return sum(h.is_connected() for h in self._holders) |
| 597 | |
| 598 | def get_init_size(self): |
| 599 | """Return the initial number of connections in this pool. |