Below you can find a snippet from my python script.
I have the following question:
Is it nescessary to close a loop explicitly like in the example below?
import asyncio
loop = asyncio.get_event_loop()
loop.run_until_complete(my_async_task())
try:
loop.run_forever()
except KeyboardInterrupt:
print('Stopping...')
finally:
loop.close()