(self, sockets=None)
| 233 | pass class="cm"># pragma: nocover |
| 234 | |
| 235 | async def serve(self, sockets=None): |
| 236 | self.restart_requested = asyncio.Event() |
| 237 | |
| 238 | loop = asyncio.get_event_loop() |
| 239 | tasks = { |
| 240 | loop.create_task(super().serve(sockets=sockets)), |
| 241 | loop.create_task(self.watch_restarts()), |
| 242 | } |
| 243 | await asyncio.wait(tasks) |
| 244 | |
| 245 | async def restart(self) -> None: class="cm"># pragma: no cover |
| 246 | class="cm"># This coroutine may be called from a different thread than the one the |
nothing calls this directly
no test coverage detected