Skip to content

Commit ce22ca3

Browse files
committed
Whoops
1 parent d4a43ea commit ce22ca3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/bevy_tasks/src/single_threaded_task_pool.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ pub struct TaskPool {}
8080

8181
impl TaskPool {
8282
/// Just create a new `ThreadExecutor` for wasm
83-
pub fn get_thread_executor() -> Arc<ThreadSpawner<'static>> {
84-
Arc::new(ThreadSpawner::new())
83+
pub fn current_thread_spawner(&self) -> ThreadSpawner<'static> {
84+
ThreadSpawner::new()
8585
}
8686

8787
/// Create a `TaskPool` with the default configuration.
@@ -119,7 +119,7 @@ impl TaskPool {
119119
#[expect(unsafe_code, reason = "Required to transmute lifetimes.")]
120120
pub fn scope_with_executor<'env, F, T>(
121121
&self,
122-
_thread_executor: Option<&ThreadSpawner>,
122+
_thread_executor: Option<ThreadSpawner>,
123123
f: F,
124124
) -> Vec<T>
125125
where

0 commit comments

Comments
 (0)