Skip to content

Commit

Permalink
Change method signature for data
Browse files Browse the repository at this point in the history
  • Loading branch information
vani2 committed Nov 18, 2023
1 parent 5cc6bc9 commit 4e786ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ extension URLSession {
/// - delegate: Delegate to get events about request (NOT WORKING💀)
/// - Returns: Tuple with Data and URLResponse
public func data(
for request: URLRequest,
forRequest request: URLRequest,
delegate: URLSessionTaskDelegate? = nil) async throws -> (Data, URLResponse) {
return try await AsyncAwaitHelper.adaptToAsync(dataTaskClosure: { continuation in
let task = dataTask(with: request) { data, response, error in
Expand Down

0 comments on commit 4e786ec

Please sign in to comment.