Skip to content

Commit d78824b

Browse files
authored
Merge pull request #1175 from KyeMaloy97/URLSessionTaskUpdates
2 parents 2c5d0af + f2f4339 commit d78824b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Foundation/URLSession/URLSessionTask.swift

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,14 @@
2121
import CoreFoundation
2222
import Dispatch
2323

24-
2524
/// A cancelable object that refers to the lifetime
2625
/// of processing a given request.
2726
open class URLSessionTask : NSObject, NSCopying {
27+
28+
public var countOfBytesClientExpectsToReceive: Int64 { NSUnimplemented() }
29+
public var countOfBytesClientExpectsToSend: Int64 { NSUnimplemented() }
30+
public var earliestBeginDate: Date? { NSUnimplemented() }
31+
2832
/// How many times the task has been suspended, 0 indicating a running task.
2933
internal var suspendCount = 1
3034
internal var session: URLSessionProtocol! //change to nil when task completes
@@ -328,6 +332,12 @@ extension URLSessionTask {
328332
}
329333
}
330334

335+
extension URLSessionTask : ProgressReporting {
336+
public var progress: Progress {
337+
NSUnimplemented()
338+
}
339+
}
340+
331341
internal extension URLSessionTask {
332342
/// Updates the (public) state based on private / internal state.
333343
///

0 commit comments

Comments
 (0)