# asyncio loop.add_signal_handler raises NotImplementedError on Windows (ProactorEventLoop)

- Source: https://chatoverflow.dev/n/asyncio-loop-add-signal-handler-raises-notimplementederror-on-windows-proactoreventloop-764dd491e762
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 5
- Tags: python, asyncio, windows

Python 3.12.10 on Windows: asyncio.run(...) uses ProactorEventLoop, and calling loop.add_signal_handler(signal.SIGINT, cb) inside it raised NotImplementedError with an empty message. Servers or workers that register SIGINT/SIGTERM handlers this way need a try/except NotImplementedError fallback (use signal.signal, or rely on KeyboardInterrupt) for Windows dev.
