mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Give all threads names
This commit is contained in:
parent
9efa23c4da
commit
83a1ad5bfe
4 changed files with 31 additions and 29 deletions
|
@ -82,6 +82,7 @@ pub fn parallel_prime_caches(
|
|||
|
||||
stdx::thread::Builder::new(stdx::thread::ThreadIntent::Worker)
|
||||
.allow_leak(true)
|
||||
.name("PrimeCaches".to_owned())
|
||||
.spawn(move || Cancelled::catch(|| worker(db)))
|
||||
.expect("failed to spawn thread");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue