Skip to content

Commit bd57610

Browse files
committed
fix some issues from rebase
1 parent 5129dbb commit bd57610

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

crates/bevy_tasks/src/single_threaded_task_pool.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ pub struct Scope<'scope, 'env: 'scope, T> {
146146
}
147147

148148
impl<'scope, 'env, T: Send + 'env> Scope<'scope, 'env, T> {
149-
impl<'scope, T: Send + 'scope> Scope<'scope, T> {
150149
/// Spawns a scoped future onto the thread-local executor. The scope *must* outlive
151150
/// the provided future. The results of the future will be returned as a part of
152151
/// [`TaskPool::scope`]'s return value.
@@ -158,9 +157,9 @@ impl<'scope, T: Send + 'scope> Scope<'scope, T> {
158157
self.spawn_on_scope(f);
159158
}
160159

161-
/// Spawns a scoped future onto the thread-local executor. The scope *must* outlive
162-
/// the provided future. The results of the future will be returned as a part of
163-
/// [`TaskPool::scope`]'s return value.
160+
/// Spawns a scoped future that runs on the thread the scope called from. The
161+
/// scope *must* outlive the provided future. The results of the future will be
162+
/// returned as a part of [`TaskPool::scope`]'s return value.
164163
///
165164
/// For more information, see [`TaskPool::scope`].
166165
pub fn spawn_on_scope<Fut: Future<Output = T> + 'env>(&self, f: Fut) {

0 commit comments

Comments
 (0)