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

Adds Swift Concurrency Availability to macOS 10.15, iOS 13, tvOS 13, and watchOS 6 #2004

Merged
merged 7 commits into from
Dec 3, 2021
Merged

Conversation

PSchmiedmayer
Copy link
Contributor

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.

@swift-server-bot
Copy link

Can one of the admins verify this patch?

11 similar comments
@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

@swift-server-bot
Copy link

Can one of the admins verify this patch?

Sources/NIOAsyncAwaitDemo/AsyncChannelIO.swift Outdated Show resolved Hide resolved
Sources/NIOAsyncAwaitDemo/main.swift Outdated Show resolved Hide resolved
Sources/NIOCore/AsyncAwaitSupport+OldXcodes.swift Outdated Show resolved Hide resolved
@Lukasa Lukasa enabled auto-merge (squash) December 3, 2021 14:41
auto-merge was automatically disabled December 3, 2021 16:23

Head branch was pushed to by a user without write access

@Lukasa
Copy link
Contributor

Lukasa commented Dec 3, 2021

@swift-nio-bot test this please

@Lukasa
Copy link
Contributor

Lukasa commented Dec 3, 2021

Thanks for the patch!

@Lukasa Lukasa merged commit fa3b2a2 into apple:main Dec 3, 2021
@PSchmiedmayer
Copy link
Contributor Author

Happy to help! Thanks for your fast response and your input @Lukasa & @weissi!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🆕 semver/minor Adds new public API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants