Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
2858 Представления

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?

Аватар
Отменить
Related Posts Ответы Просмотры Активность
2
окт. 23
6042
0
мая 22
656
1
июл. 25
2353
2
июл. 25
7840
2
июл. 25
4234