Hi,
I’m using GTK-rs and I want to send data(2xu32 and 2xu8 values) from another thread to be drawn in main thread GTK(in ProgressBar).
I’m using two independent modules - Core and GUI, so I can’t just send to Core glib::MainContent::channel sender.
I use crossbeam::channel to connect GUI and Core, but I don’t know how to receive messages in GUI side.
When I would receive this, I will send this info via glib::MainContent but this should I know how to do.
Is there any wa function that will execute once per 0.1 second to check if something is in chanell?
You can use any futures-enabled channel and use it on the GLib main context. Any async runtime-independent Rust future can be spawned on the GLib main context.