async def run(self) -> None:
    '\n        Calls the application with the `lifespan` connection scope.\n        '
    try:
        (await self.app({'type': 'lifespan'}, self.receive, self.send))
    except LifespanUnsupported:
        self.logger.info("ASGI 'lifespan' protocol appears unsupported.")
    except (LifespanFailure, UnexpectedMessage) as exc:
        self.exception = exc
    except BaseException as exc:
        self.logger.error("Exception in 'lifespan' protocol.", exc_info=exc)
    finally:
        self.startup_event.set()
        self.shutdown_event.set()
Calls the application with the `lifespan` connection scope.
async def run(self) -> None:
    '\n        \n        '
    try:
        (await self.app({'type': 'lifespan'}, self.receive, self.send))
    except LifespanUnsupported:
        self.logger.info("ASGI 'lifespan' protocol appears unsupported.")
    except (LifespanFailure, UnexpectedMessage) as exc:
        self.exception = exc
    except BaseException as exc:
        self.logger.error("Exception in 'lifespan' protocol.", exc_info=exc)
    finally:
        self.startup_event.set()
        self.shutdown_event.set()