Skip to content

Commit c41f353

Browse files
authored
Merge pull request #765 from ikesyo/urlsessionstreamtask-updates
2 parents 507630e + 943e1fe commit c41f353

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Foundation/NSURLSession/NSURLSessionTask.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,14 +1185,14 @@ open class URLSessionStreamTask : URLSessionTask {
11851185
* If an error occurs, any outstanding reads will also fail, and new
11861186
* read requests will error out immediately.
11871187
*/
1188-
open func readData(ofMinLength minBytes: Int, maxLength maxBytes: Int, timeout: TimeInterval, completionHandler: (NSData?, Bool, NSError?) -> Void) { NSUnimplemented() }
1188+
open func readData(ofMinLength minBytes: Int, maxLength maxBytes: Int, timeout: TimeInterval, completionHandler: @escaping (Data?, Bool, Error?) -> Void) { NSUnimplemented() }
11891189

11901190
/* Write the data completely to the underlying socket. If all the
11911191
* bytes have not been written by the timeout, a timeout error will
11921192
* occur. Note that invocation of the completion handler does not
11931193
* guarantee that the remote side has received all the bytes, only
11941194
* that they have been written to the kernel. */
1195-
open func write(data: NSData, timeout: TimeInterval, completionHandler: (NSError?) -> Void) { NSUnimplemented() }
1195+
open func write(_ data: Data, timeout: TimeInterval, completionHandler: @escaping (Error?) -> Void) { NSUnimplemented() }
11961196

11971197
/* -captureStreams completes any already enqueued reads
11981198
* and writes, and then invokes the

0 commit comments

Comments
 (0)