We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60e7762 commit 22ec886Copy full SHA for 22ec886
crates/bevy_tasks/src/task_pool.rs
@@ -180,14 +180,14 @@ impl TaskPool {
180
}
181
182
fn new_internal(builder: TaskPoolBuilder) -> Self {
183
- if let Some(thread_count) = builder.max_blocking_threads {
+ // 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
- }
+ // }
191
192
let (shutdown_tx, shutdown_rx) = async_channel::unbounded::<()>();
193
0 commit comments