Skip to content

Commit

Permalink
Fix backwards compatability of PR #286
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyMDev committed Mar 8, 2024
1 parent 546bc90 commit 40e4e61
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion apollo-ios/Sources/Apollo/URLSessionClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,19 @@ open class URLSessionClient: NSObject, URLSessionDelegate, URLSessionTaskDelegat

return task
}


@discardableResult
open func sendRequest(_ request: URLRequest,
rawTaskCompletionHandler: RawCompletion? = nil,
completion: @escaping Completion) -> URLSessionTask {
sendRequest(
request,
taskDescription: nil,
rawTaskCompletionHandler: nil,
completion: completion
)
}

/// Cancels a given task and clears out its underlying data.
///
/// NOTE: You will not receive any kind of "This was cancelled" error when this is called.
Expand Down

0 comments on commit 40e4e61

Please sign in to comment.