Skip to content

Commit

Permalink
Replace crossbeam::scope reference with thread::scope in docs (#1…
Browse files Browse the repository at this point in the history
…1832)

# Objective

-
[`crossbeam::scope`](https://docs.rs/crossbeam/latest/crossbeam/fn.scope.html)
is soft-deprecated in favor of the standard library's implementation.

## Solution

- Replace reference in `TaskPool`'s docs to mention `std::thread::scope`
instead.
  • Loading branch information
BD103 authored Feb 12, 2024
1 parent 2bc4825 commit b721aaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_tasks/src/task_pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ impl TaskPool {
/// passing a scope object into it. The scope object provided to the callback can be used
/// to spawn tasks. This function will await the completion of all tasks before returning.
///
/// This is similar to `rayon::scope` and `crossbeam::scope`
/// This is similar to [`thread::scope`] and `rayon::scope`.
///
/// # Example
///
Expand Down

0 comments on commit b721aaa

Please sign in to comment.