Skip to content

Commit

Permalink
Panicking in spawned Rayon tasks will abort the process by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamreichold committed May 23, 2024
1 parent b806122 commit d67d80f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,12 @@ mod tests {
let rx_clone2 = rx.clone();
let fut = executor.spawn_blocking(move || {
counter_clone.fetch_add(1, Ordering::SeqCst);
let () = rx_clone.recv().unwrap();
let _ = rx_clone.recv();
});
futures.push(fut);
let other_fut = executor.spawn_blocking(move || {
other_counter_clone.fetch_add(1, Ordering::SeqCst);
let () = rx_clone2.recv().unwrap();
let _ = rx_clone2.recv();
});
other_futures.push(other_fut);
}
Expand Down

0 comments on commit d67d80f

Please sign in to comment.