mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
Allow choosing logical cores for num threads config
This commit is contained in:
parent
913371fb0b
commit
e972dd2385
3 changed files with 43 additions and 9 deletions
|
@ -284,7 +284,7 @@ impl Analysis {
|
|||
})
|
||||
}
|
||||
|
||||
pub fn parallel_prime_caches<F>(&self, num_worker_threads: u8, cb: F) -> Cancellable<()>
|
||||
pub fn parallel_prime_caches<F>(&self, num_worker_threads: usize, cb: F) -> Cancellable<()>
|
||||
where
|
||||
F: Fn(ParallelPrimeCachesProgress) + Sync + std::panic::UnwindSafe,
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue