Skip to content

Commit d0a19e9

Browse files
committed
temporarily comment out more code
1 parent 60e7762 commit d0a19e9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

crates/bevy_tasks/src/task_pool.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,14 @@ impl TaskPool {
180180
}
181181

182182
fn new_internal(builder: TaskPoolBuilder) -> Self {
183-
if let Some(thread_count) = builder.max_blocking_threads {
184-
// Safety: This is likely unsafe as this could be called if the TaskPoolBuilder is called from
185-
// multiple threads.
186-
// #[expect(unsafe_code, reason = "TaskPools are only initialiazed from one thread")]
187-
// unsafe {
188-
// env::set_var("BLOCKING_MAX_THREADS", thread_count.to_string().as_str());
189-
// }
190-
}
183+
// if let Some(thread_count) = builder.max_blocking_threads {
184+
// Safety: This is likely unsafe as this could be called if the TaskPoolBuilder is called from
185+
// multiple threads.
186+
// #[expect(unsafe_code, reason = "TaskPools are only initialiazed from one thread")]
187+
// unsafe {
188+
// env::set_var("BLOCKING_MAX_THREADS", thread_count.to_string().as_str());
189+
// }
190+
// }
191191

192192
let (shutdown_tx, shutdown_rx) = async_channel::unbounded::<()>();
193193

0 commit comments

Comments
 (0)