-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Replace @completionHandlerAsync with @available(*, renamed:) #38643
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
Conversation
|
@swift-ci please test |
|
Few main changes from the commit in the other PR:
|
|
Build failed |
87648a0 to
1b4e614
Compare
|
@swift-ci please test |
|
@swift-ci please test Windows platform |
hamishknight
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
1b4e614 to
b79fd11
Compare
|
Build failed |
|
Build failed |
b79fd11 to
d793390
Compare
|
@swift-ci please test |
Instead of a new attribute `@completionHandlerAsync`, allow the use of the existing `renamed` parameter of `@available` to specify the asynchronous alternative of a synchronous function. No errors will be output from invalid names as `@completionHandlerAsync` had, but if a function is correctly matched then it will be used to output warnings when using the synchronous function in an asynchronous context (as before). Resolves rdar://80612731
d793390 to
e7e9b57
Compare
|
Ah, someone else got module format version number change in before I could merge. Ah well. Last tests passed, will just do a smoke test so I can merge. @swift-ci smoke test |
|
@etcwilde I'm going to merge this, but let me know if you think it needs any changes. |
Instead of a new attribute
@completionHandlerAsync, allow the use ofthe existing
renamedparameter of@availableto specify theasynchronous alternative of a synchronous function.
No errors will be output from invalid names as
@completionHandlerAsynchad, but if a function is correctly matched then it will be used to
output warnings when using the synchronous function in an asynchronous
context (as before).
Resolves rdar://80612731