You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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?
Yeah that would be great.
Otherwise I was thinking of using the beforeRequest / error handler to
check some shared state and access the abort there. But missing from that
scenario would be the timeout scenario which doesn’t seem to have access to
the context with abort on it?
Thanks
Richard
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)
The text was updated successfully, but these errors were encountered: