Skip to content

Commit

Permalink
downloadTask(withResumeData: ...) signature fixed
Browse files Browse the repository at this point in the history
It should have the same completion handler type as the other two `downloadTask` methods
  • Loading branch information
glessard authored Dec 12, 2016
1 parent 173e9ea commit adc2125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Foundation/NSURLSession/NSURLSession.swift
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ extension URLSession {
return downloadTask(with: _Request(url), behavior: .downloadCompletionHandler(completionHandler))
}

open func downloadTask(withResumeData resumeData: Data, completionHandler: (NSURL?, URLResponse?, NSError?) -> Void) -> URLSessionDownloadTask { NSUnimplemented() }
open func downloadTask(withResumeData resumeData: Data, completionHandler: @escaping (URL?, URLResponse?, NSError?) -> Void) -> URLSessionDownloadTask { NSUnimplemented() }
}

internal extension URLSession {
Expand Down

0 comments on commit adc2125

Please sign in to comment.