News for hackers. Stuff that matters.
Re:Async and Await in Rust: a full proposal by imtringued on Sunday July 15, 2018 @05:49PM (#17537283)
>only allows context switching at well-defined points in your program.

Erlang works the same way. The VM scheduler will only context switch on a function call. for or while loops don't exist in Erlang which means there is no risk of blocking the scheduler.

Re:Async and Await in Rust: a full proposal by weberc2 on Sunday July 15, 2018 @06:52PM (#17537544)
I assumed it must, I just wasn’t familiar. Thanks for clarifying!