Closed kugel- closed 2 years ago
It is not compatible with async code.
Okay. I'm getting started with Rust and have no async code in my toy project. Might be helpful if your wonderful tutorial would at least mention it, I found it easier to get started than with async_channel.
I'd recommend building GTK4 applications with Relm4 instead right now. It'll take care of this and more: https://github.com/Relm4/Relm4/
Hello, thanks for the invaluable guide, it helped me a lot!
Especially the section about using channels to communicate widget events. However, I'm curious as to why the async_channel crate is used when glib offers the needed functionality:
glib::MainContext::channel
As glib is foundational for gtk anyway you could simply get rid of the async_channel dependency,
I was able to achieve the tutorials goals using the following: main.rs:
app.rs