382 B
382 B
- Replace
asyncio.get_event_loop()byasyncio.get_running_loop()as soon as support for Python 3.6 is not necessary any more. Reason:get_event_loopis depcrecated since Python 3.10. See: https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.get_event_loop - Use
asyncio.run()to run therun()-method as soon as support for Python 3.6 has been dropped.