4 ms·
gtk-rs also supports Rust's futures on top of GTK's event loop, and you can .await dialog windows and button presses. https://docs.rs/glib/latest/glib/struct.M
by pornel 3y ago
gtk-rs also supports Rust's futures on top of GTK's event loop, and you can .await dialog windows and button presses.
https://docs.rs/glib/latest/glib/struct.MainContext.html#impl-MainContext-3 https://docs.rs/glib/latest/glib/struct.MainContext.html#imp...
- jenadine 3y agoI guess every rust toolkit supports that by now. Eg, Slint: https://docs.rs/slint/latest/slint/fn.spawn_local.html https://docs.rs/slint/latest/slint/fn.spawn_local.html
- __s 3y agoBack in 2012 I threw together something like this for managing UI dialogs in C#. For all the hate async/await gets about being an over optimization, it's good to see people find use for it as an ergonomic tool outside of concurrency
- fanf2 3y agoUser interfaces are not outside of concurrency.