Answers for "asyncio RuntimeError: Event loop is closed"

0

asyncio RuntimeError: Event loop is closed

if sys.platform == 'win32':
                # Set the policy to prevent "Event loop is closed" error on Windows - https://github.com/encode/httpx/issues/914
                asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
Posted by: Guest on January-23-2022

Python Answers by Framework

Browse Popular Code Answers by Language