@@ -38,7 +38,7 @@ open class URLSessionConfiguration : NSObject, NSCopying {
3838 self . timeoutIntervalForResource = 604800
3939 self . networkServiceType = . default
4040 self . allowsCellularAccess = true
41- self . discretionary = false
41+ self . isDiscretionary = false
4242 self . httpShouldUsePipelining = false
4343 self . httpShouldSetCookies = true
4444 self . httpCookieAcceptPolicy = . onlyFromMainDocumentDomain
@@ -57,7 +57,7 @@ open class URLSessionConfiguration : NSObject, NSCopying {
5757 timeoutIntervalForResource: TimeInterval ,
5858 networkServiceType: URLRequest . NetworkServiceType ,
5959 allowsCellularAccess: Bool ,
60- discretionary : Bool ,
60+ isDiscretionary : Bool ,
6161 connectionProxyDictionary: [ AnyHashable : Any ] ? ,
6262 httpShouldUsePipelining: Bool ,
6363 httpShouldSetCookies: Bool ,
@@ -76,7 +76,7 @@ open class URLSessionConfiguration : NSObject, NSCopying {
7676 self . timeoutIntervalForResource = timeoutIntervalForResource
7777 self . networkServiceType = networkServiceType
7878 self . allowsCellularAccess = allowsCellularAccess
79- self . discretionary = discretionary
79+ self . isDiscretionary = isDiscretionary
8080 self . connectionProxyDictionary = connectionProxyDictionary
8181 self . httpShouldUsePipelining = httpShouldUsePipelining
8282 self . httpShouldSetCookies = httpShouldSetCookies
@@ -102,7 +102,7 @@ open class URLSessionConfiguration : NSObject, NSCopying {
102102 timeoutIntervalForResource: timeoutIntervalForResource,
103103 networkServiceType: networkServiceType,
104104 allowsCellularAccess: allowsCellularAccess,
105- discretionary : discretionary ,
105+ isDiscretionary : isDiscretionary ,
106106 connectionProxyDictionary: connectionProxyDictionary,
107107 httpShouldUsePipelining: httpShouldUsePipelining,
108108 httpShouldSetCookies: httpShouldSetCookies,
@@ -142,7 +142,7 @@ open class URLSessionConfiguration : NSObject, NSCopying {
142142 open var allowsCellularAccess : Bool
143143
144144 /* allows background tasks to be scheduled at the discretion of the system for optimal performance. */
145- open var discretionary : Bool
145+ open var isDiscretionary : Bool
146146
147147 /* The identifier of the shared data container into which files in background sessions should be downloaded.
148148 * App extensions wishing to use background sessions *must* set this property to a valid container identifier, or
0 commit comments