How can i trigger a simple Label to update from another thread?
As soon as i enter the event loop the thread becomes blocking, until a event is called.
But as far as i can see these events are only internal events such as mouse move events.
If i want to use EventLoop#next_tick, i need the UI which is a Rc<iui::ui::UIToken which i can only call from the owning thread. If i want to update the Label, the same occurs. How can i change it?
Maybe i did understand something wrong, if so feel free to correct me :)
Also another question: The Label seems to flash quickly as i update it. Is this expected behaviour?
How can i trigger a simple
Labelto update from another thread?As soon as i enter the event loop the thread becomes blocking, until a event is called.
But as far as i can see these events are only internal events such as mouse move events.
If i want to use
EventLoop#next_tick, i need the UI which is aRc<iui::ui::UITokenwhich i can only call from the owning thread. If i want to update theLabel, the same occurs. How can i change it?Maybe i did understand something wrong, if so feel free to correct me :)
Also another question: The
Labelseems to flash quickly as i update it. Is this expected behaviour?