async-rs / async-rs/async-std

Ways to specify thread stack size

Open
#1,008 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
4.1k
Forks
339
PR merge metrics
No merged PRs in 30d

Description

When we are trying to spawn a memory costy task with async-std
`async_std::task::spawn(some_future())`
It throws `thread 'async-std/runtime' has overflowed its stack`

Although we can solve this problem with the following code:
```rust
thread::Builder::new().stack_size(32 * 1024).spawn(|| {
async_std::task::block_on(some_future())
}).unwrap();
```

But if async_std also has the specified task stack size, it can save some time.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.