Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
2551 Weergaven

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


Beste antwoord

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

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
2
okt. 23
5572
0
mei 22
656
2
jun. 25
1181
0
mei 25
12
2
jan. 25
2758