Skip to content

Commit

Permalink
fix rebase formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
hymm committed Jun 10, 2022
1 parent 0fce9ea commit 418ca49
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/bevy_tasks/src/task_pool.rs
Expand Up @@ -2,8 +2,9 @@ use std::{
future::Future,
marker::PhantomData,
mem,
pin::Pin,
sync::Arc,
thread::{self, JoinHandle}, pin::Pin,
thread::{self, JoinHandle},
};

use concurrent_queue::ConcurrentQueue;
Expand Down Expand Up @@ -264,7 +265,7 @@ impl TaskPool {
results
};

// Pin the futures on the stack.
// Pin the futures on the stack.
pin!(get_results);

// SAFETY: This function blocks until all futures complete, so we do not read/write
Expand All @@ -286,7 +287,7 @@ impl TaskPool {
if let Some(result) = future::block_on(future::poll_once(&mut spawned)) {
break result;
};

self.executor.try_tick();
task_scope_executor.try_tick();
}
Expand Down

0 comments on commit 418ca49

Please sign in to comment.