Skip to content

[5.5][Async Refactoring] Cosmetic Improvements to "Add Async Wrapper" Refactoring #38267

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

Merged
merged 1 commit into from
Jul 8, 2021

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Jul 6, 2021

  • Explanation: Rename the continuation from cont to continuation and error from err to error to better match Swifts naming guidelines and add assertions that all result parameters are nil if an error is passed to the completion handler so that we don’t silently drop them.
  • Scope: "Add Async Wrapper" refactoring
  • Risk: Low
  • Testing: Added regression tests
  • Issue: rdar://80172152
  • Reviewer: @hamishknight (Hamish Knight) on original PR [Async Refactoring] Cosmetic Improvements to "Add Async Wrapper" Refactoring #38259

…ctoring

Two mostly-cosmetic change to the "Add Async Wrapper" refactoring
- Rename the continuation from `cont` to `continuation` and error from `err` to `error` to better match Swifts naming guidelines
- Add assertions that all result parameters are `nil` if an error is passed to the completion handler.

Resolves rdar://80172152
@ahoppen ahoppen added the r5.5 label Jul 6, 2021
@ahoppen ahoppen requested a review from akyrtzi July 6, 2021 08:53
@ahoppen ahoppen requested a review from a team as a code owner July 6, 2021 08:53
@ahoppen
Copy link
Member Author

ahoppen commented Jul 6, 2021

@swift-ci Please test

@swift-ci
Copy link
Contributor

swift-ci commented Jul 6, 2021

Build failed
Swift Test Linux Platform
Git Sha - c8c604a

@ahoppen
Copy link
Member Author

ahoppen commented Jul 7, 2021

@swift-ci Please test Linux

@swift-ci
Copy link
Contributor

swift-ci commented Jul 8, 2021

Build failed
Swift Test Linux Platform
Git Sha - c8c604a

@ahoppen
Copy link
Member Author

ahoppen commented Jul 8, 2021

@swift-ci Please test Linux

@ahoppen ahoppen merged commit 9703323 into swiftlang:release/5.5 Jul 8, 2021
@ahoppen ahoppen deleted the pr-5.5/rename-cont-and-err branch July 28, 2021 16:16
@AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick Flag: Release branch cherry picks swift 5.5 labels Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants