asyncio - how to stop background task cleanly
marko at pacujo.net
Sun Feb 7 04:27:09 EST 2016
"Frank Millman" <frank at chagford.com>:
> I have never been able to get Ctrl+C to work properly on Windows, so I
> use a separate thread that simply waits for Enter.
Now you are leaving my realm of expertise, as I haven't programmed for
windows since Windows 1.0. Mixing threads, asyncio, input() and Windows
seems like begging for trouble, though.
More information about the Python-list