Request: a way of catching any windows signal. #4921
Labels
A-tokio
Area: The main tokio crate
C-feature-request
Category: A feature request.
M-signal
Module: tokio/signal
Right now it seems that tokio only exports signal handlers for ctrl_c and ctrl_break for windows, while for Unix, you can trap any signal covered by SignalKind.
It would be great if there was a method that would allow creating an RxFuture for any of the signal types in the winapi crate.
This method already exists, but it's marked private. It would be great if this were public and given a new name so I could trap the various other windows signals that exist.
tokio/tokio/src/signal/windows/sys.rs
Line 20 in 4b1c480
The text was updated successfully, but these errors were encountered: