News for hackers. Stuff that matters.
Re:Scipio: A Thread-per-Core Crate for Rust and Linux by kitten_mittens_ on Tuesday November 03, 2020 @08:23AM (#24979382)
In browser JS can drop down to the old Promise callbacks (.then) to avoid coloring synchronous callers.
Re:Scipio: A Thread-per-Core Crate for Rust and Linux by brundolf on Tuesday November 03, 2020 @10:52AM (#24980704)
If any part of your function depends on the result of a promise then it has to return a promise; this is true whether you use async/await syntax or then(). Unfortunately JS doesn't have something like block_on, which now that I think about it is probably because it's single-threaded, so any block would block the entire app.