idanarye / woab

Widgets on Actors Bridge - a GUI microframework for combining GTK with Actix
https://crates.io/crates/woab
MIT License
14 stars 1 forks source link

Signal overhaul experiments #19

Closed piegamesde closed 3 years ago

piegamesde commented 3 years ago

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.