Timeline for How do JavaScript engines convert async/await to promises under the hood?
Current License: CC BY-SA 4.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 23, 2021 at 17:25 | comment | added | Redu | @dx_over_dt It is basically the same code. The synchronous doSomething function in your code is doStgSync(b) function in my code. If it's argument b is true it just works or throws an error if it is false. Your doSomethingAsync function is doAsyncIn(n) in my code. If n argument is 0 then it rejects or if not takes that many ms to resolve. | |
| Oct 23, 2021 at 17:15 | comment | added | dx_over_dt | I'm not sure I follow. Can you convert my example async function into a Promise chain? | |
| S Oct 23, 2021 at 17:10 | review | First answers | |||
| Oct 23, 2021 at 19:05 | |||||
| S Oct 23, 2021 at 17:10 | history | answered | Redu | CC BY-SA 4.0 |