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

Translation into Swift Concurrency model #1

Draft
wants to merge 9 commits into
base: xcode-12-2-beta-3
Choose a base branch
from

Conversation

DougGregor
Copy link
Owner

@DougGregor DougGregor commented Oct 15, 2020

Demonstrate the effect of the Swift Concurrency translation on Objective-C APIs.

@DougGregor DougGregor marked this pull request as draft October 15, 2020 20:57
Review over a large number of APIs has found that most of the time, the
result type of an Objective-C completion handler method that becomes
"async throws" should be optional.
When importing a method as `async`, look whether it would overload a
synchronous method. If so, append the `Async` suffix to the base name
to keep it out of the way of the original function.
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.

1 participant