Dear Ilya! I am about "On settled promises handlers runs immediately" info box in https://javascript.info/promise-basics page. I read: "... if a promise has already settled, they execute immediately". I think, word "immediiately" is not good in this context because promise handlers will be executed later from microtasks queue (yours cources teached me, thank you :) ):
// an immediately resolved promise
let promise = new Promise(resolve => resolve("done!"));
promise.then(alert); // done! (shows up right now) - not exactly
alert("not too fast, i am first!");
I have not a big expirience in English, and I can't write a good phrase to describe a behavior .then/catch/finally handlers on settled promise. Possible, you should use "without waiting", "without delay" or something else, but not "immediately".
Dear Ilya! I am about "On settled promises handlers runs immediately" info box in https://javascript.info/promise-basics page. I read: "... if a promise has already settled, they execute immediately". I think, word "immediiately" is not good in this context because promise handlers will be executed later from microtasks queue (yours cources teached me, thank you :) ):
I have not a big expirience in English, and I can't write a good phrase to describe a behavior .then/catch/finally handlers on settled promise. Possible, you should use "without waiting", "without delay" or something else, but not "immediately".