From bf352cd2511775a331d77dee261b64bd8359dacb Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 14 Feb 2019 20:43:45 +0300 Subject: automatically wait for worker threads closes #817 --- crates/ra_lsp_server/src/project_model.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/ra_lsp_server/src/project_model.rs') diff --git a/crates/ra_lsp_server/src/project_model.rs b/crates/ra_lsp_server/src/project_model.rs index 6800eb138..7d6440fad 100644 --- a/crates/ra_lsp_server/src/project_model.rs +++ b/crates/ra_lsp_server/src/project_model.rs @@ -1,6 +1,6 @@ use std::path::PathBuf; -use thread_worker::{WorkerHandle, Worker}; +use thread_worker::Worker; use crate::Result; @@ -8,8 +8,8 @@ pub use ra_project_model::{ ProjectWorkspace, CargoWorkspace, Package, Target, TargetKind, Sysroot, }; -pub fn workspace_loader() -> (Worker>, WorkerHandle) { - thread_worker::spawn::, _>( +pub fn workspace_loader() -> Worker> { + Worker::>::spawn( "workspace loader", 1, |input_receiver, output_sender| { -- cgit v1.2.3