A simple CPU rendered GUI IDE experience.
fewer threads
| -rw-r--r-- | src/lsp.rs | 1 | ||||
| -rw-r--r-- | src/main.rs | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -174,6 +174,7 @@ pub fn run( ch_tx: ch_tx.clone(), progress: Box::leak(Box::new(papaya::HashMap::new())), runtime: tokio::runtime::Builder::new_multi_thread() + .worker_threads(2) .thread_name("lsp runtime") .build() .unwrap(), diff --git a/src/main.rs b/src/main.rs index 698acf4..35e9109 100644 --- a/src/main.rs +++ b/src/main.rs @@ -761,7 +761,7 @@ pub(crate) fn entry(event_loop: EventLoop<()>) { }; }, ); - ch.map(|ch| thread::spawn(move || { + ch.map(|ch| thread::Builder::new().name("redrawer".into()).spawn(move || { for () in ch { PUT.get().map(|x| x.request_redraw()); } |