Skip to content

[Async Refactoring] Add @discardableResult for defaulted completion #37882

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
Jun 12, 2021

Conversation

hamishknight
Copy link
Contributor

If the completion handler parameter has a default argument, mark the resulting async function as @discardableResult, as the caller may not care about the result.

rdar://79190170

If the completion handler parameter has a default
argument, mark the resulting async function as
`@discardableResult`, as the caller may not care
about the result.

rdar://79190170
@hamishknight
Copy link
Contributor Author

@swift-ci please test

@hamishknight hamishknight requested a review from bnbarham June 11, 2021 10:43
@swiftlang swiftlang deleted a comment from swift-ci Jun 11, 2021
@swiftlang swiftlang deleted a comment from swift-ci Jun 11, 2021
@bnbarham bnbarham merged commit 0eeaec1 into swiftlang:main Jun 12, 2021
@hamishknight hamishknight deleted the a-non-complete-agreement branch June 12, 2021 22:04
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.

2 participants