Return the current number of idle connections in this pool. .. versionadded:: 0.25.0
(self)
| 504 | return self._maxsize |
| 505 | |
| 506 | def get_idle_size(self): |
| 507 | """Return the current number of idle connections in this pool. |
| 508 | |
| 509 | .. versionadded:: 0.25.0 |
| 510 | """ |
| 511 | return sum(h.is_connected() and h.is_idle() for h in self._holders) |
| 512 | |
| 513 | def set_connect_args(self, dsn=None, **connect_kwargs): |
| 514 | r"""Set the new connection arguments for this pool. |