Skip to content

Commit

Permalink
Make scope() function soft-deprecated
Browse files Browse the repository at this point in the history
Make crossbeam's `scope()` function soft-deprecated in favor of the more
efficient `std::thread::scope` that stabilized on Rust 1.63.
  • Loading branch information
taiki-e committed Feb 28, 2023
1 parent 923d050 commit 7df683c
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 7df683c

Please sign in to comment.