1
0
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:
Frances Wingerter 2025-05-05 18:28:00 +00:00
parent 4cbf1b2c8d
commit 6e92ef14b6

View File

@ -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 {