Update spawn.rs

This commit is contained in:
Shunsuke Shibayama 2022-12-17 18:02:39 +09:00
parent 2d689ee698
commit af4628fa43

View file

@ -8,7 +8,7 @@ where
F: FnOnce() -> T + Send + 'static, F: FnOnce() -> T + Send + 'static,
T: Send + 'static, T: Send + 'static,
{ {
if cfg!(windows) || cfg!(features = "large_thread") { if cfg!(windows) || cfg!(feature = "large_thread") {
const STACK_SIZE: usize = 4 * 1024 * 1024; const STACK_SIZE: usize = 4 * 1024 * 1024;
let child = thread::Builder::new() let child = thread::Builder::new()
.stack_size(STACK_SIZE) .stack_size(STACK_SIZE)