Skip to content

Commit 806117b

Browse files
committed
fix review comments
1 parent 41ecd4a commit 806117b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

crates/bevy_tasks/src/thread_executor.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ use futures_lite::Future;
4444
/// thread_ticker.try_tick();
4545
/// assert_eq!(count.load(Ordering::Relaxed), 1);
4646
/// ```
47-
///
4847
#[derive(Debug, Clone)]
4948
pub struct ThreadExecutor {
5049
executor: Arc<Executor<'static>>,
@@ -67,7 +66,7 @@ impl ThreadExecutor {
6766
}
6867

6968
/// Gets the `[ThreadSpawner]` for the thread executor.
70-
/// Use this to spawn tasks that run on the thread this was instatiated on.
69+
/// Use this to spawn tasks that run on the thread this was instantiated on.
7170
pub fn spawner(&self) -> ThreadSpawner<'static> {
7271
ThreadSpawner(self.executor.clone())
7372
}
@@ -88,7 +87,7 @@ impl ThreadExecutor {
8887
}
8988

9089
/// Used to spawn on the [`ThreadExecutor`]
91-
#[derive(Debug)]
90+
#[derive(Debug, Clone)]
9291
pub struct ThreadSpawner<'a>(Arc<Executor<'a>>);
9392
impl<'a> ThreadSpawner<'a> {
9493
/// Spawn a task on the thread executor

0 commit comments

Comments
 (0)