Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
2799 Vizualizări

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())

    


Imagine profil
Abandonează
2023 looking for the same solution


Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
oct. 23
5986
0
mai 22
656
1
iul. 25
2245
2
iul. 25
7731
2
iul. 25
4142