async def receive(self) -> Message:
    '\n        Awaited by the application to receive ASGI `lifespan` events.\n        '
    if (self.state is LifespanCycleState.CONNECTING):
        self.state = LifespanCycleState.STARTUP
    elif (self.state is LifespanCycleState.STARTUP):
        self.state = LifespanCycleState.SHUTDOWN
    return (await self.app_queue.get())
Awaited by the application to receive ASGI `lifespan` events.
async def receive(self) -> Message:
    '\n        \n        '
    if (self.state is LifespanCycleState.CONNECTING):
        self.state = LifespanCycleState.STARTUP
    elif (self.state is LifespanCycleState.STARTUP):
        self.state = LifespanCycleState.SHUTDOWN
    return (await self.app_queue.get())