Skip to content

Commit 7df683c

Browse files
committed
Make scope() function soft-deprecated
Make crossbeam's `scope()` function soft-deprecated in favor of the more efficient `std::thread::scope` that stabilized on Rust 1.63.
1 parent 923d050 commit 7df683c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crossbeam-utils/src/thread.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ type SharedOption<T> = Arc<Mutex<Option<T>>>;
133133
/// returned containing errors from panicked threads. Note that if panics are implemented by
134134
/// aborting the process, no error is returned; see the notes of [std::panic::catch_unwind].
135135
///
136+
/// **Note:** Since Rust 1.63, this function is soft-deprecated in favor of the more efficient [`std::thread::scope`].
137+
///
136138
/// # Examples
137139
///
138140
/// ```

0 commit comments

Comments
 (0)