-
Notifications
You must be signed in to change notification settings - Fork 655
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
Adds Swift Concurrency Availability to macOS 10.15, iOS 13, tvOS 13, and watchOS 6 #2004
Conversation
Can one of the admins verify this patch? |
11 similar comments
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Head branch was pushed to by a user without write access
@swift-nio-bot test this please |
Thanks for the patch! |
Adds Swift Concurrency Availability to macOS 10.15, iOS 13, tvOS 13, and watchOS 6
Motivation:
This PR is related to #2000.
With the support for Swift Concurrency coming to macOS 10.15, iOS 13, tvOS 13, and watchOS 6 with Xcode 13.2, the Swift Concurrency features should be available when compiling for these targets using Xcode 13.2.
Modifications:
Change the @available annotations to macOS 10.15, iOS 13, tvOS 13, and watchOS 6 and introduce a temporary code duplication as discussed in #2000.
Changes the source code of the NIOAsyncAwaitDemo to only work on Swift 5.2.2 (Xcode 13.2) on macOS 10.15 and newer and all other non-Darwin platforms.
Result:
The Swift Concurrency features are marked with
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
and can therefore be used on macOS 10.15, iOS 13, tvOS 13, and watchOS 6.