Skip to content

Commit

Permalink
Merge pull request #105 from UbiqueInnovation/swift-6-fixes
Browse files Browse the repository at this point in the history
More swift 6 fixes
  • Loading branch information
maerki authored Oct 21, 2024
2 parents e1c0935 + 289eaaf commit fdc4907
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import Foundation

public extension UBURLDataTask {
struct MetaData {
struct MetaData: Sendable {
public let info: UBNetworkingTaskInfo?
public let response: HTTPURLResponse?
}
Expand Down Expand Up @@ -69,7 +69,7 @@ public extension UBURLDataTask {
TaskConfig(session: session)
}

struct TaskResult<T> {
struct TaskResult<T: Sendable>: Sendable {
init(resultTuple: ResultTuple<T>) {
self.resultTuple = resultTuple
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ public protocol UBURLRequestTokenAuthorization: UBURLRequestModifier {
/// Fetches the token and returns it
///
/// - Parameter completion: The completion should be called with success or failure
func getToken(completion: @escaping (Result<String, Error>) -> Void)
func getToken(completion: @escaping @Sendable (Result<String, Error>) -> Void)
}

public extension UBURLRequestTokenAuthorization {
/// :nodoc:
func modifyRequest(_ originalRequest: UBURLRequest, completion: @escaping (Result<UBURLRequest, Error>) -> Void) {
func modifyRequest(_ originalRequest: UBURLRequest, completion: @escaping @Sendable (Result<UBURLRequest, Error>) -> Void) {
getToken { result in
var modifierRequest = originalRequest
switch result {
Expand Down

0 comments on commit fdc4907

Please sign in to comment.