diff --git a/milli/src/update/index_documents/mod.rs b/milli/src/update/index_documents/mod.rs index 912ff2c2d..de797541d 100644 --- a/milli/src/update/index_documents/mod.rs +++ b/milli/src/update/index_documents/mod.rs @@ -497,6 +497,8 @@ where // If no more chunk remains in the chunk accumulator and the channel is disconected, break. } else if status == crossbeam_channel::RecvTimeoutError::Disconnected { break; + } else { + rayon::yield_now(); } } Ok(result) => {