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.
/// - 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
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.