4 ms·
Judging from your comment history, are you perhaps used to writing asynchronous code in Rust? In most languages, `Futures` start executing from when they are sp
by TheNorthman 6y ago
Judging from your comment history, are you perhaps used to writing asynchronous code in Rust? In most languages, `Futures` start executing from when they are spawned. This is opposed to Rust, where they execute when they are `.await`ed.
- deleted 6y ago[deleted]
- d1plo1d 6y agoOk, 3rd edit. The promises are awaited in sequence but since they are both started before the first await they are run in parallel. Your question about Rust futures makes a ton more sense now. This only works because a promise is self-executing / not inert like a Rust Future. Thank you kind stranger! Your async-foo is strong ^_^