Replies: 1 comment 1 reply
-
That's a really old version of the book. I should probably take it down. How did you find this btw? Please head over to https://relm4.org/book/stable for an up-to-date version of the book. It also has a threads and async chapter with an overview that should point you in the right direction. If you still have questions, feel free to comment in this discussion or ask in our Matrix room :) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So I have SimpleComponent. In its
update()
method, I have a message handler which spawns a child process to run some task.This is kinda a long running task, so I would like to show a spinner while it's running, then when it's done, hide the spinner and show a bunch of other widgets (form in gtk:Box)
I know there are multiple ways to handle this with Relm4 / Rust, but since I'm new to both I'm not sure what's the best approach. What do I need here? A worker? Async update function? Something else?
I checked this page: https://aaronerhardt.github.io/relm4-book/book/threads_and_async.html but it's not clear to me how could I implement this using SimpleComponent or something similar. Any help would be appreciated.
Basically I just wanna run something like this in a non-blocking way:
Beta Was this translation helpful? Give feedback.
All reactions