diff options
author | Aleksey Kladov <[email protected]> | 2019-02-14 17:43:45 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-02-14 18:11:07 +0000 |
commit | bf352cd2511775a331d77dee261b64bd8359dacb (patch) | |
tree | ba7d988ebef437d5a9d7beac048b5ac0dbd2fe9c /crates/ra_vfs/src/lib.rs | |
parent | 10bf61b83b2600ed3cb7e7825f1cd0ee83e9b7e7 (diff) |
automatically wait for worker threads
closes #817
Diffstat (limited to 'crates/ra_vfs/src/lib.rs')
-rw-r--r-- | crates/ra_vfs/src/lib.rs | 6 |
1 files changed, 0 insertions, 6 deletions
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::{ | |||
22 | fmt, fs, mem, | 22 | fmt, fs, mem, |
23 | path::{Path, PathBuf}, | 23 | path::{Path, PathBuf}, |
24 | sync::Arc, | 24 | sync::Arc, |
25 | thread, | ||
26 | }; | 25 | }; |
27 | 26 | ||
28 | use crossbeam_channel::Receiver; | 27 | use crossbeam_channel::Receiver; |
@@ -337,11 +336,6 @@ impl Vfs { | |||
337 | mem::replace(&mut self.pending_changes, Vec::new()) | 336 | mem::replace(&mut self.pending_changes, Vec::new()) |
338 | } | 337 | } |
339 | 338 | ||
340 | /// Shutdown the VFS and terminate the background watching thread. | ||
341 | pub fn shutdown(self) -> thread::Result<()> { | ||
342 | self.worker.shutdown() | ||
343 | } | ||
344 | |||
345 | fn add_file( | 339 | fn add_file( |
346 | &mut self, | 340 | &mut self, |
347 | root: VfsRoot, | 341 | root: VfsRoot, |