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