Terminate all connections in the pool.
(self)
| 988 | 'Pool.close().') |
| 989 | |
| 990 | def terminate(self): |
| 991 | """Terminate all connections in the pool.""" |
| 992 | if self._closed: |
| 993 | return |
| 994 | self._check_init() |
| 995 | for ch in self._holders: |
| 996 | ch.terminate() |
| 997 | self._closed = True |
| 998 | |
| 999 | async def expire_connections(self): |
| 1000 | """Expire all currently open connections. |