diff --git a/crates/bevy_tasks/src/thread_executor.rs b/crates/bevy_tasks/src/thread_executor.rs index 26514a45865198..2ab48bce6c1cd5 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