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

Utilize async/await more frequently #754

Merged
merged 4 commits into from
Jan 31, 2025
Merged

Utilize async/await more frequently #754

merged 4 commits into from
Jan 31, 2025

Conversation

Acconut
Copy link
Member

@Acconut Acconut commented Jan 24, 2025

Previously, the core uploading logic "manually" handled promises using .then and .catch. This PR transitions to using await and try {} catch {} where possible. The benefit is that this allows us to improve the error handling. The main uploading logic can now just throw errors, that will bubble up to the entry function, which takes care of inspecting the error and issuing retries.

@Acconut Acconut changed the title More async Utilize async/await more frequently Jan 31, 2025
@Acconut Acconut merged commit ca5f873 into main Jan 31, 2025
8 of 10 checks passed
@Acconut Acconut deleted the more-async branch January 31, 2025 14:20
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.

1 participant