From aa678b3ff5f300a83c9274c67f4806b5b796bd10 Mon Sep 17 00:00:00 2001 From: Michael Hsu Date: Wed, 4 Jan 2023 13:20:38 -0800 Subject: [PATCH] fix review comments --- crates/bevy_tasks/src/thread_executor.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/bevy_tasks/src/thread_executor.rs b/crates/bevy_tasks/src/thread_executor.rs index 26514a4586519..2ab48bce6c1cd 100644 --- a/crates/bevy_tasks/src/thread_executor.rs +++ b/crates/bevy_tasks/src/thread_executor.rs @@ -44,7 +44,6 @@ use futures_lite::Future; /// thread_ticker.try_tick(); /// assert_eq!(count.load(Ordering::Relaxed), 1); /// ``` -/// #[derive(Debug, Clone)] pub struct ThreadExecutor { executor: Arc>, @@ -67,7 +66,7 @@ impl ThreadExecutor { } /// Gets the `[ThreadSpawner]` for the thread executor. - /// Use this to spawn tasks that run on the thread this was instatiated on. + /// Use this to spawn tasks that run on the thread this was instantiated on. pub fn spawner(&self) -> ThreadSpawner<'static> { ThreadSpawner(self.executor.clone()) } @@ -88,7 +87,7 @@ impl ThreadExecutor { } /// Used to spawn on the [`ThreadExecutor`] -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct ThreadSpawner<'a>(Arc>); impl<'a> ThreadSpawner<'a> { /// Spawn a task on the thread executor