| 5 | use tokio::time::{sleep, Duration}; |
| 6 | |
| 7 | pub(crate) struct TextExecutor { |
| 8 | timer: slint::Timer, |
| 9 | weak: Weak<MainWindow>, |
| 10 | text_rx: Option<Receiver<String>>, |
| 11 | } |
| 12 | |
| 13 | impl TextExecutor { |
| 14 | pub(crate) fn new(weak: Weak<MainWindow>) -> (Self, Sender<Arc<RwLock<DisplayText>>>) { |
nothing calls this directly
no outgoing calls
no test coverage detected