diff --git a/Sources/SimpleHTTPFoundation/Foundation/URLSession+Publisher.swift b/Sources/SimpleHTTPFoundation/Foundation/URLSession+Async.swift similarity index 92% rename from Sources/SimpleHTTPFoundation/Foundation/URLSession+Publisher.swift rename to Sources/SimpleHTTPFoundation/Foundation/URLSession+Async.swift index 377b871..e2540ed 100644 --- a/Sources/SimpleHTTPFoundation/Foundation/URLSession+Publisher.swift +++ b/Sources/SimpleHTTPFoundation/Foundation/URLSession+Async.swift @@ -6,7 +6,7 @@ extension URLSession { try await withCheckedThrowingContinuation { promise in self.dataTask(with: urlRequest) { data, response, error in if let error = error { - promise.resume(throwing: error) + return promise.resume(throwing: error) } guard let data = data, let response = response else {