Skip to content

[Concurrency] await try -> try await #35214

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
Jan 4, 2021

Conversation

DougGregor
Copy link
Member

The try await ordering is both easier to read and indicates the order
of operations better, because the suspension point occurs first and
then one can observe a thrown error.

The `try await` ordering is both easier to read and indicates the order
of operations better, because the suspension point occurs first and
then one can observe a thrown error.
@DougGregor DougGregor force-pushed the await-try-to-try-await branch from 9260ab7 to 3c38ffe Compare December 23, 2020 21:22
@DougGregor
Copy link
Member Author

@swift-ci please test

Copy link
Contributor

@rjmccall rjmccall left a comment

Choose a reason for hiding this comment

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

LGTM

@DougGregor
Copy link
Member Author

@swift-ci please smoke test

@DougGregor
Copy link
Member Author

@swift-ci please smoke test Linux

@DougGregor DougGregor merged commit 79c4e3c into swiftlang:main Jan 4, 2021
@DougGregor DougGregor deleted the await-try-to-try-await branch January 4, 2021 18:52
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.

3 participants