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

Mark unary async calls as @discardableResult. #399

Merged
merged 2 commits into from
Mar 11, 2019

Conversation

mpetrov
Copy link
Contributor

@mpetrov mpetrov commented Mar 11, 2019

The result is only necessary if you need cancellation.

The result is only necessary if you need cancellation.
@@ -175,6 +175,7 @@ extension Generator {
}
if asynchronousCode {
println("/// Asynchronous. Unary.")
println("@discardableResult")
Copy link
Collaborator

@MrMage MrMage Mar 11, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: whitespace? (also elsewhere)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. I think I lost set noindent when swapping machines and the tap was only visible in the diff but not the implementation.

PTAL

@MrMage MrMage merged commit f7807da into grpc:master Mar 11, 2019
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