Subprocess
Subprocess
1. Windows event loop
On Windows, the default event loop is SelectorEventLoop
which does not support subprocesses. ProactorEventLoop
should be used instead. Example to use it on Windows:
import asyncio, sys if sys.platform == 'win32': loop = asyncio.ProactorEventLoop() asyncio.set_event_loop(loop)
See also