python call async function from sync

后端 未结 0 1449
温柔的废话
温柔的废话 2021-01-15 19:57

I have an asynchronous function that makes http requests and receives json:

async def query_async(name):

    async with aiohttp.ClientSession() as session:
          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题