mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-05-16 07:36:05 +02:00
concurrency: link-checker: mentioned shared Receiver pattern
This commit is contained in:
parent
4cbf1b2c8d
commit
6e92ef14b6
@ -105,6 +105,7 @@ fn spawn_crawler_threads(
|
||||
result_sender: mpsc::Sender<CrawlResult>,
|
||||
thread_count: u32,
|
||||
) {
|
||||
// To multiplex the non-cloneable Receiver, wrap it in Arc<Mutex<_>>.
|
||||
let command_receiver = Arc::new(Mutex::new(command_receiver));
|
||||
|
||||
for _ in 0..thread_count {
|
||||
|
Loading…
x
Reference in New Issue
Block a user