Shutdown server (called from event loop thread).
(self)
| 171 | self._thread.start() |
| 172 | |
| 173 | def _shutdown(self): |
| 174 | """Shutdown server (called from event loop thread).""" |
| 175 | if self._server: |
| 176 | self._server.close() |
| 177 | |
| 178 | def _run_loop(self): |
| 179 | """Run the asyncio event loop in background thread.""" |