3 ms·
Starting the event loop is no worse than any setup of a main function, it’s a oneliner: asyncio.get_event_loop().run_until_completion(my_async_main)
by Too 4y ago
Starting the event loop is no worse than any setup of a main function, it’s a oneliner: asyncio.get_event_loop().run_until_completion(my_async_main)
- BerislavLopac 4y agoErrr no, that has been replaced with asyncio.run quite some time ago.