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

fix: Call onRetryAttempt *after* backoff timeout #244

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

orgads
Copy link
Contributor

@orgads orgads commented Dec 20, 2023

The log appears before the timeout, which is misleading.

Also return support for async onRetryAttempt.

Fixes #119.

@orgads orgads force-pushed the on-retry-after-timeout branch 2 times, most recently from 12ce1c8 to cbb5f41 Compare December 20, 2023 20:07
@orgads
Copy link
Contributor Author

orgads commented Jun 13, 2024

ping?

@orgads orgads force-pushed the on-retry-after-timeout branch 3 times, most recently from 6ca787a to f633719 Compare June 13, 2024 12:41
The log appears before the timeout, which is misleading.

Also return support for async onRetryAttempt.

Introduce a new onError callback that is called before the timeout.

Fixes JustinBeckwith#119.
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

Successfully merging this pull request may close these issues.

onRetryAttempt doesn't handle promise rejection
1 participant