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_vfs/src/lib.rs | 6 ------ 1 file changed, 6 deletions(-) (limited to 'crates/ra_vfs/src/lib.rs') diff --git a/crates/ra_vfs/src/lib.rs b/crates/ra_vfs/src/lib.rs index f07657db6..1fb255365 100644 --- a/crates/ra_vfs/src/lib.rs +++ b/crates/ra_vfs/src/lib.rs @@ -22,7 +22,6 @@ use std::{ fmt, fs, mem, path::{Path, PathBuf}, sync::Arc, - thread, }; use crossbeam_channel::Receiver; @@ -337,11 +336,6 @@ impl Vfs { mem::replace(&mut self.pending_changes, Vec::new()) } - /// Shutdown the VFS and terminate the background watching thread. - pub fn shutdown(self) -> thread::Result<()> { - self.worker.shutdown() - } - fn add_file( &mut self, root: VfsRoot, -- cgit v1.2.3