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.
[ Parent
| on HN ]
There are no comments on this comment yet.