async def shutdown(self) -> None:
    '\n        Pushes the `lifespan` shutdown event to application queue and handles errors.\n        '
    self.logger.info('Waiting for application shutdown.')
    (await self.app_queue.put({'type': 'lifespan.shutdown'}))
    (await self.shutdown_event.wait())
    if (self.state is LifespanCycleState.FAILED):
        raise LifespanFailure(self.exception)
Pushes the `lifespan` shutdown event to application queue and handles errors.
async def shutdown(self) -> None:
    '\n        \n        '
    self.logger.info('Waiting for application shutdown.')
    (await self.app_queue.put({'type': 'lifespan.shutdown'}))
    (await self.shutdown_event.wait())
    if (self.state is LifespanCycleState.FAILED):
        raise LifespanFailure(self.exception)