Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using abort to signal cancellation from outside the retry #70

Open
RichardWright opened this issue Oct 25, 2024 · 2 comments
Open

using abort to signal cancellation from outside the retry #70

RichardWright opened this issue Oct 25, 2024 · 2 comments

Comments

@RichardWright
Copy link

Hi

Do you have any suggestions for accessing the context for a retry function from outside the function? For example if you were making multiple retry requests using promise.all and one fails, this could then signal the other retry functions to abort? (pushing the signal so to speak)

@mdlavin
Copy link
Member

mdlavin commented Oct 25, 2024

Somebody recently put up a PR to support AbortSignals . With that support, could could build what you are describing by aborting the signal in the catch block. Would that work for you?

@RichardWright
Copy link
Author

RichardWright commented Oct 25, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants