تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
2829 أدوات العرض

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
أكتوبر 23
6021
0
مايو 22
656
1
يوليو 25
2347
2
يوليو 25
7830
2
يوليو 25
4222