Skip to content

Commit

Permalink
Merge #954
Browse files Browse the repository at this point in the history
954: Make `scope()` function soft-deprecated r=taiki-e a=taiki-e

Make crossbeam's `scope()` function soft-deprecated in favor of the more efficient `std::thread::scope` that stabilized on Rust 1.63.

Closes #816
Closes #844

Co-authored-by: Taiki Endo <[email protected]>
  • Loading branch information
bors[bot] and taiki-e authored Jan 18, 2023
2 parents 83c4a85 + d596f6c commit f45c4c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crossbeam-utils/src/thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ type SharedOption<T> = Arc<Mutex<Option<T>>>;
/// returned containing errors from panicked threads. Note that if panics are implemented by
/// aborting the process, no error is returned; see the notes of [std::panic::catch_unwind].
///
/// **Note:** Since Rust 1.63, this function is soft-deprecated in favor of the more efficient [`std::thread::scope`].
///
/// # Examples
///
/// ```
Expand Down

0 comments on commit f45c4c1

Please sign in to comment.