Expire all currently open connections. Cause all currently open connections to get replaced on the next :meth:`~asyncpg.pool.Pool.acquire()` call. .. versionadded:: 0.16.0
(self)
| 1123 | ch.terminate() |
| 1124 | |
| 1125 | async def expire_connections(self): |
| 1126 | """Expire all currently open connections. |
| 1127 | |
| 1128 | Cause all currently open connections to get replaced on the |
| 1129 | next :meth:`~asyncpg.pool.Pool.acquire()` call. |
| 1130 | |
| 1131 | .. versionadded:: 0.16.0 |
| 1132 | """ |
| 1133 | self._generation += 1 |
| 1134 | |
| 1135 | def _check_init(self): |
| 1136 | if not self._initialized: |
no outgoing calls