Skip to content

Commit

Permalink
fix review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hymm committed Jan 7, 2023
1 parent adc3260 commit aa678b3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/bevy_tasks/src/thread_executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Executor<'static>>,
Expand All @@ -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())
}
Expand All @@ -88,7 +87,7 @@ impl ThreadExecutor {
}

/// Used to spawn on the [`ThreadExecutor`]
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct ThreadSpawner<'a>(Arc<Executor<'a>>);
impl<'a> ThreadSpawner<'a> {
/// Spawn a task on the thread executor
Expand Down

0 comments on commit aa678b3

Please sign in to comment.