Gives each attempt ms to finish, aborting the attempt's own signal with a
TimeoutError and rejecting with the same error.
The abort is the point: an action that watches its signal stops working,
rather than running on behind a promise nobody is waiting for. An action
that ignores its signal cannot be cancelled by anything, here or elsewhere,
and the rejection is still on time.
This is a deadline per attempt. A deadline for the whole operation is a
budget, and retry spells it maxElapsed.
Gives each attempt
msto finish, aborting the attempt's own signal with a TimeoutError and rejecting with the same error.The abort is the point: an action that watches its signal stops working, rather than running on behind a promise nobody is waiting for. An action that ignores its signal cannot be cancelled by anything, here or elsewhere, and the rejection is still on time.
This is a deadline per attempt. A deadline for the whole operation is a budget, and
retryspells itmaxElapsed.