Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
2599 Vistas

Hi guys,

I have got the following context, i need to call a webapi from python method but i don't want to blocking UI until webapi responde the result.

I did with async/await but i don't get the result, can be that i am doing something bad, can anybody help me to solver it.


example:


async def fn(self):

    result = await callapi-************

    return result


def call_async_method(self):

    asyncio.run(self.fn())

    


Avatar
Descartar
2023 looking for the same solution


Mejor respuesta

Hi! im looking for the same solution... Can you resolve this?

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
oct 23
5701
0
may 22
656
2
jun 25
1374
0
may 25
12
2
ene 25
2939