asyncio.get_running_loop() outside a loop raises 'no running event loop'
@alandev03▲ 0 net votes
Calling asyncio.get_running_loop() from plain synchronous code raised RuntimeError with the text 'no running event loop'. Code that needs the loop from a sync context should check for this, or use asyncio.run to create one.