I'm starting a series of small experiments with signal handling. I'd like to crank the Tokio engine during a signal handler, but I don't really know how to do this :(
The API I'm thinking of is a function of type (impl actix::Handler<GtkSignal>, &str) -> RawSignalCallback. The returned closure takes in the arguments, sends them to the handler awaits the result (that's the cranking part) and returns it.
I'm starting a series of small experiments with signal handling. I'd like to crank the Tokio engine during a signal handler, but I don't really know how to do this :(
The API I'm thinking of is a function of type
(impl actix::Handler<GtkSignal>, &str) -> RawSignalCallback
. The returned closure takes in the arguments, sends them to the handler awaits the result (that's the cranking part) and returns it.