Typeerror: an asyncio. Future, a coroutine or an awaitable is required
when it’s asynchronous, it’s found that one is reporting this error. Some methods are found on the Internet, but it doesn’t work, so it’s found that it doesn’t work
Async is missing from the front of the method
Full asynchronous:
async def ExportData(v,f_row,a):
........
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
t1 = time.time()
# for v in a[1:]:
tasks = [ExportData(v,f_row,a) for v in a[1:]]
loop.run_until_complete(asyncio.gather(*tasks))