Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
2695 Tampilan

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


Jawaban Terbai

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

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
2
Okt 23
5829
0
Mei 22
656
2
Jul 25
2907
2
Jun 25
1780
0
Mei 25
14