How can you combine FastAPI lifespan context manager with a third-party async library that requires explicit startup and shutdown calls?
Aasync def lifespan(app: FastAPI):\n await third_party.startup()\n yield\n await third_party.shutdown()
Bdef lifespan(app: FastAPI):\n third_party.startup()\n yield\n third_party.shutdown()
Casync def lifespan():\n await third_party.startup()\n yield\n await third_party.shutdown()
Dasync def lifespan(app: FastAPI):\n third_party.startup()\n yield\n third_party.shutdown()