mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 04:24:43 +00:00
Update spawn.rs
This commit is contained in:
parent
2d689ee698
commit
af4628fa43
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ where
|
|||
F: FnOnce() -> 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;
|
||||
let child = thread::Builder::new()
|
||||
.stack_size(STACK_SIZE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue