In the code example in section 'Networks are hard'
Otherwise if called with attempt(1), it will reject the promise on the third attempt instead of fourth, and will give up after 750 ms instead of after a second, both contradict with the text following the code example.
In the code example in section 'Networks are hard'
Otherwise if called with
attempt(1)
, it will reject the promise on the third attempt instead of fourth, and will give up after 750 ms instead of after a second, both contradict with the text following the code example.