Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3075 Zobrazení

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
Zrušit
2023 looking for the same solution


Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
říj 23
6357
0
kvě 22
656
3
zář 25
2888
0
srp 25
511
1
srp 25
2590