I tried to read https://hackernoon.com/asynchronous-python-45df84b82434. It\'s about asynchronous python and I tried the code from this, but I\'m getting a weird Error. The
asyncio.run is a Python 3.7 addition. In 3.5-3.6, your example is roughly equivalent to:
import asyncio futures = [...] loop = asyncio.get_event_loop() loop.run_until_complete(asyncio.wait(futures))