Re:Tokio 1.0 – async runtime for Rust
by novocaine on Wednesday December 23, 2020 @05:49PM
(#25523195)
Pending async waits have stacks to preserve too
[ Parent
| on HN ]
Re:Tokio 1.0 – async runtime for Rust
by steveklabnik on Wednesday December 23, 2020 @05:54PM
(#25523245)
The difference, at least in the way this is built in Rust, is that when you create a task, you get a single allocation that's exactly sized. There's no resizing, which means that you aren't getting stacks that are too big or too small, with all of the other runtime shenanigans that that entails.