3 ms·
The function passed to the promise is executed synchronously, the call to `then` is always asynchronous.
by depr 10y ago
The function passed to the promise is executed synchronously, the call to `then` is always asynchronous.
- epmatsw 10y agoTrue, worded that poorly. The resolutions are always executed asynchronously, versus a callback approach where the code receiving the callback can inappropriately and unexpectedly choose to execute the callback synchronously.