It makes no sense to asynchronize and wait when this is the actual case:
Promise.resolve(3).then(console.log); console.log(4); 4 3
In other words, since then () branches and runs slower than subsequent statements (even for the allowed Promise), we need to put subsequent statements in then, for example:
Promise.resolve(3).then(_ => { console.log(_); console.log(4); }); 3 4
And since this is true, then why wait. So I still have to understand why asynchronous and pending generally exist.
ekerner
source share