vapor / websocket-kit

WebSocket client library built on SwiftNIO
https://docs.vapor.codes/4.0/advanced/websockets/
MIT License
272 stars 79 forks source link

Async/Await Backward Compatibility #112

Closed dioKaratzas closed 2 years ago

dioKaratzas commented 2 years ago

Starting in Xcode 13.2, Swift’s new suite of concurrency features are now backward compatible all the way back to iOS 13, macOS 10.15, watchOS 6, and tvOS 13

0xTim commented 2 years ago

So unfortunately this isn't that simple because we can't guarantee what versions of Xcode people are using. Both Xcode 13.0 and 13.1 will no longer compile with the PR as is because they don't have a concurrency runtime. We'd need to duplicate all the APIs and have copies for 5.5 but old Xcode and 5.5 but new Xcode. As such, we are choosing not to support older Apple platforms and stick with what we have. Does that make sense?