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

feat: onRetry support for async function #247

Merged
merged 2 commits into from
Oct 26, 2023

Conversation

yutak23
Copy link
Contributor

@yutak23 yutak23 commented Oct 26, 2023

This PR solves the #236.

Since await is simply ignored for synchronous functions, this change should not affect existing functionality.

Added test to verify that onRetry works as expected even when it returns a promise.

@mindhells
Copy link
Member

It would be nice to update the docs of this function and maybe mention the use case mentioned in #236. WDYT?

@yutak23
Copy link
Contributor Author

yutak23 commented Oct 26, 2023

It would be nice to update the docs of this function and maybe mention the use case mentioned in #236. WDYT?

Thank you for your comment. I have updated the RAEDME.

@mindhells mindhells merged commit 433057e into softonic:master Oct 26, 2023
4 checks passed
@mindhells
Copy link
Member

thanks a lot!

@yutak23 yutak23 deleted the feature/support-async-func branch October 26, 2023 11:57
@mindhells
Copy link
Member

published as 3.8.1

@yutak23 yutak23 restored the feature/support-async-func branch October 26, 2023 12:01
@yutak23 yutak23 deleted the feature/support-async-func branch October 26, 2023 12:01
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.

None yet

2 participants