asyncio
asyncio copied to clipboard
SIGINT is not correctly handled in Windows
in Windows, CTRL+C doesn't terminate this script:
#!/usr/bin/env python
import asyncio
try:
asyncio.get_event_loop().run_forever()
except KeyboardInterrupt:
asyncio.get_event_loop().stop()
also see #191
Are there any news or known workarounds for this? I'm having the same problem
@lukkm Here is a workaround: https://stackoverflow.com/questions/24774980/why-cant-i-catch-sigint-when-asyncio-event-loop-is-running/24775107#24775107