def close_all(self) -> None:
    self.connection_close_task = asyncio.create_task(self.close_all_connections())
    if (self.runner is not None):
        self.site_shutdown_task = asyncio.create_task(self.runner.cleanup())
    if (self.app is not None):
        self.app_shut_down_task = asyncio.create_task(self.app.shutdown())
    for (task_id, task) in self.api_tasks.items():
        task.cancel()
    self.shut_down_event.set()
    self.incoming_task.cancel()
    self.gc_task.cancel()
def close_all(self) -> None:
    self.connection_close_task = asyncio.create_task(self.close_all_connections())
    if (self.runner is not None):
        self.site_shutdown_task = asyncio.create_task(self.runner.cleanup())
    if (self.app is not None):
        self.app_shut_down_task = asyncio.create_task(self.app.shutdown())
    for (task_id, task) in self.api_tasks.items():
        task.cancel()
    self.shut_down_event.set()
    self.incoming_task.cancel()
    self.gc_task.cancel()