Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2863 Visualizzazioni

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
Abbandona
2023 looking for the same solution


Risposta migliore

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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
ott 23
6043
0
mag 22
656
1
lug 25
2353
2
lug 25
7841
2
lug 25
4236