In 'Networks are hard', after the first code example, the text reads "The first time resolve or reject is called determines the outcome of the promise, and any further calls, such as the timeout arriving after the request finishes [...]".
The "timeout arriving after the request finishes" is ignored because it contains the if (done) return;, not because the promise is resolved or rejected, am I correct?
In 'Networks are hard', after the first code example, the text reads "The first time resolve or reject is called determines the outcome of the promise, and any further calls, such as the timeout arriving after the request finishes [...]".
The "timeout arriving after the request finishes" is ignored because it contains the
if (done) return;
, not because the promise is resolved or rejected, am I correct?