-
Notifications
You must be signed in to change notification settings - Fork 9
Enable Strict Concurrency mode #13
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
Conversation
emildzwonek
commented
Aug 2, 2024
- Enable strict concurrency mode
- Bump minimal OS versions (required by swift-tools-version:5.10)
- Tweak codebase to build with strict concurrency mode without warnings
@@ -60,23 +60,23 @@ extension URLSession { | |||
method: HTTPMethod, | |||
parameters: ParametersEncoding?, | |||
headers: HTTPHeaders?, | |||
decoder: DataDecoder | |||
decoder: @autoclosure @escaping @Sendable () -> DataDecoder |
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.
does it have to be escaping here?
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.
Good catch, removed
} | ||
|
||
// MARK: - Private | ||
|
||
private static func handle<T: Decodable>( | ||
response: HTTPURLResponse, | ||
data: Data, | ||
decoder: DataDecoder, | ||
decoder: @autoclosure @escaping @Sendable () -> DataDecoder, |
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.
and here
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.
Good catch, removed
.tvOS(.v11), | ||
.macOS(.v13), | ||
.iOS(.v12), | ||
.tvOS(.v12), |
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.
why not V15?
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.
Just bumped it to the oldest recommended version. We won't get any benefit from v15 here, v16 would make a difference
cc97651
to
e62bd32
Compare