Skip to content

URLSessionTask conforms to ProgressReporting protocol, added new instance properties. #1175

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 23, 2017

Conversation

KyeMaloy97
Copy link
Contributor

URLSessionTask now conforms to ProgressReporting protocol.

Also added the 3 other, new instance properties to it too, namely earliestBeginDate, countOfBytesClientExpectsToRecieve and countOfBytesClientExpectsToSend.

/// A cancelable object that refers to the lifetime
/// of processing a given request.
open class URLSessionTask : NSObject, NSCopying {

public var countOfBytesClientExpectsToRecieve: Int64 { NSUnimplemented() }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo, should be countOfBytesClientExpectsToReceive.

@KyeMaloy97 KyeMaloy97 force-pushed the URLSessionTaskUpdates branch from 29283b0 to f2f4339 Compare August 14, 2017 15:32
@ianpartridge ianpartridge requested a review from pushkarnk August 15, 2017 08:29
@pushkarnk
Copy link
Member

Though I'm not aware of any feasibility study done to check the implementability of the new properties, its good to stub them out for now. Thanks!

@pushkarnk
Copy link
Member

@swift-ci please test and merge

@pushkarnk
Copy link
Member

cc @saiHemak

@swift-ci swift-ci merged commit d78824b into swiftlang:master Aug 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants