콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
2830 화면

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
6021
0
5월 22
656
1
7월 25
2347
2
7월 25
7830
2
7월 25
4224