(self, exc: Exception | None)
| 515 | self._waiter.set_result(None) |
| 516 | |
| 517 | def connection_lost(self, exc: Exception | None) -> None: |
| 518 | if not self._waiter.done(): |
| 519 | self._waiter.set_exception(exc) |
| 520 | return super().connection_lost(exc) |
| 521 | |
| 522 | async def wait_handshake(self) -> None: |
| 523 | return await asyncio.wait_for(self._waiter, timeout=QuicClient.TIMEOUT) |