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

Use finally for waiter.endAsync #243

Merged
merged 1 commit into from
Feb 24, 2022
Merged

Use finally for waiter.endAsync #243

merged 1 commit into from
Feb 24, 2022

Conversation

chriskrycho
Copy link
Collaborator

This shouldn't change the semantics at all; it's just a nice win for the clarity and maintainability of the code, and it guarantees that even if we change it (e.g. to re-throw) in the future, it will always end the test waiter.

Thanks to @scalvert for the suggestion!

This shouldn't change the semantics at all; it's just a nice win for
the clarity and maintainability of the code, and it guarantees that
even if we change it (e.g. to re-`throw`) in the future, it will always
end the test waiter.
@chriskrycho
Copy link
Collaborator Author

TS stuff is independent so I'm merging over it and resolving that in a separate PR later today. (Needs updating for Ember v4 types anyway.)

@chriskrycho chriskrycho merged commit 3f1610e into main Feb 24, 2022
@chriskrycho chriskrycho deleted the finally branch February 24, 2022 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants