Expand description
OS signal abstractions OS signal abstractions.
- Unix: a
SIGINThandler writes one byte to a self-pipe; [ctrl_c] awaits readability on the pipe through the runtime’s epoll/kqueue driver. No polling. - Windows:
SetConsoleCtrlHandlerroutes console events through a future-based interface. - WASM: host import [
crate::abi::imports::signal_wait] drives the completion.
Functions§
- ctrl_c
- Wait asynchronously until Ctrl-C (SIGINT) is received.