Closed swain closed 1 year ago
@leo @leerob Is this package still maintained? If so, I'd like to propose this PR as a new feature.
Note: currently, CI is failing on the main
branch due to a test that has become broken. I've put up a separate PR to fix that issue: #104.
@rauchg Missed tagging you -- looks like you are one of the original authors as well.
Motivation
This PR adds support for aborting retrying using the now-common
AbortController
/AbortSignal
utilities via a newsignal
option.This API allows for more flexibility in use cases that may need to imperatively stop the retrying from outside of the retried function.
Example