def __exit__(self, exc_type: Optional[Type[BaseException]], exc_value:
Optional[Exception], traceback: Optional[TracebackType]) \
-> None:
"""Terminate the server and join the thread on exit."""
self.server.terminate()
self.server.join()
评论列表
文章目录