We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using Swift version 5.8 and swift-corelibs-foundation, this code:
let url = URL(string: "https://www.example.com")! let (data, response) = try await URLSession.shared.data(from: url)
does not compile and outputs the following error: error: value of type 'URLSession' has no member 'data'
The text was updated successfully, but these errors were encountered:
Function that is attempting to be used is documented at: https://developer.apple.com/documentation/foundation/urlsession/3767352-data
The async functions are currently unavailable on swift-corelibs-foundation.
async
Sorry, something went wrong.
Duplicate? - #3205
Is there a workaround? I just finished a re-write to async/await
No branches or pull requests
Using Swift version 5.8 and swift-corelibs-foundation, this code:
does not compile and outputs the following error:
error: value of type 'URLSession' has no member 'data'
The text was updated successfully, but these errors were encountered: