-
Notifications
You must be signed in to change notification settings - Fork 52
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
support URLSession concurrency method in Swift 6(Linux, Windows) #58
Conversation
zunda-pixel
commented
Jul 14, 2024
- support URLSession concurrency method in Swift 6(Linux, Windows)
- add DerivedData to .gitignore for Xcode
@swift-ci test |
@jrflat Would you take a look at this? |
|
||
@available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, *) | ||
extension URLSession { |
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.
AsyncBytes supports Apple Platform, but doesn't support Linux and Windows.
swiftlang/swift-corelibs-foundation#3036
|
||
#endif | ||
|
||
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || os(visionOS) |
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.
Can we guard only the bytes
func with this directive? That way we don't have to do the #endif/#if
and split the extension. LGTM otherwise!
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.
I put it all together in one extension.
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.
Thanks! Looks good to merge once CI passes.
@swift-ci please test |
@swift-ci test |
.gitignore
Outdated
@@ -12,3 +12,4 @@ Package.resolved | |||
|
|||
# DocC generated files | |||
.docc-build | |||
DerivedData |
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.
Would you move it up to the Xcode section and delete one of the .xcode
s?
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.
I moved it under .xcode