BennyKJohnson / OpenCloudKit

Open Source CloudKit Framework
MIT License
96 stars 17 forks source link

Convenience operations should be QOS user-initiated #14

Open malhal opened 7 years ago

malhal commented 7 years ago

About CloudKit and Quality of Service

However I'm not sure if there is anything within the Swift foundation that would make use of it.

Note discretionary means that the operation doesn't end on network errors but keeps re-trying on its own, I think its for 24 hours on iOS? I suppose this was done to simplify developer code but coming from traditional networking APIs it is a bit confusing.

malhal commented 7 years ago

https://github.com/apple/swift-corelibs-foundation/blob/19249417b01573bd6aa32b9a24cc42273315a48b/Foundation/NSOperation.swift

    /// - Note: Quality of service is not directly supported here since there are not qos class promotions available outside of darwin targets.
    open var qualityOfService: NSQualityOfService = .default