[Python] Can or How to use Python asyncio on Google Cloud Functions?

Discussão em 'Python' iniciado por Stack, Abril 16, 2025.

  1. Stack

    Stack Membro Participativo

    Is it possible to use Python's asyncio on Google Cloud Functions?

    async def handle_someting():
    # do something
    some = await aiofunc()

    # Do I need the code below?
    loop = asyncio.get_event_loop()
    loop.run_until_complete(handle_someting())
    loop.close()

    Continue reading...

Compartilhe esta Página