コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2694 ビュー

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

    


アバター
破棄
2023 looking for the same solution


最善の回答

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

アバター
破棄
関連投稿 返信 ビュー 活動
2
10月 23
5828
0
5月 22
656
2
7月 25
2905
2
6月 25
1780
0
5月 25
14