MCPcopy Create free account
hub / github.com/elastic/devfiler / background_ui_waker

Function background_ui_waker

src/ui/mod.rs:63–75  ·  view source on GitHub ↗
(ctx: egui::Context)

Source from the content-addressed store, hash-verified

61}
62
63async fn background_ui_waker(ctx: egui::Context) {
64 let mut db_watcher = crate::storage::UpdateWatcher::default();
65 let mut cache_watcher = cached::UpdateWatcher::default();
66 let freq = std::time::Duration::from_millis(50);
67
68 loop {
69 if db_watcher.any_changes() || cache_watcher.any_caches() {
70 ctx.request_repaint();
71 }
72
73 tokio::time::sleep(freq).await;
74 }
75}
76
77fn load_phosphor_icons(ctx: &egui::Context) {
78 let mut fonts = egui::FontDefinitions::default();

Callers 1

gui_threadFunction · 0.85

Calls 2

any_changesMethod · 0.80
any_cachesMethod · 0.80

Tested by

no test coverage detected