@@ -38,7 +38,7 @@ open class URLSessionConfiguration : NSObject, NSCopying {
38
38
self . timeoutIntervalForResource = 604800
39
39
self . networkServiceType = . default
40
40
self . allowsCellularAccess = true
41
- self . discretionary = false
41
+ self . isDiscretionary = false
42
42
self . httpShouldUsePipelining = false
43
43
self . httpShouldSetCookies = true
44
44
self . httpCookieAcceptPolicy = . onlyFromMainDocumentDomain
@@ -57,7 +57,7 @@ open class URLSessionConfiguration : NSObject, NSCopying {
57
57
timeoutIntervalForResource: TimeInterval ,
58
58
networkServiceType: URLRequest . NetworkServiceType ,
59
59
allowsCellularAccess: Bool ,
60
- discretionary : Bool ,
60
+ isDiscretionary : Bool ,
61
61
connectionProxyDictionary: [ AnyHashable : Any ] ? ,
62
62
httpShouldUsePipelining: Bool ,
63
63
httpShouldSetCookies: Bool ,
@@ -76,7 +76,7 @@ open class URLSessionConfiguration : NSObject, NSCopying {
76
76
self . timeoutIntervalForResource = timeoutIntervalForResource
77
77
self . networkServiceType = networkServiceType
78
78
self . allowsCellularAccess = allowsCellularAccess
79
- self . discretionary = discretionary
79
+ self . isDiscretionary = isDiscretionary
80
80
self . connectionProxyDictionary = connectionProxyDictionary
81
81
self . httpShouldUsePipelining = httpShouldUsePipelining
82
82
self . httpShouldSetCookies = httpShouldSetCookies
@@ -102,7 +102,7 @@ open class URLSessionConfiguration : NSObject, NSCopying {
102
102
timeoutIntervalForResource: timeoutIntervalForResource,
103
103
networkServiceType: networkServiceType,
104
104
allowsCellularAccess: allowsCellularAccess,
105
- discretionary : discretionary ,
105
+ isDiscretionary : isDiscretionary ,
106
106
connectionProxyDictionary: connectionProxyDictionary,
107
107
httpShouldUsePipelining: httpShouldUsePipelining,
108
108
httpShouldSetCookies: httpShouldSetCookies,
@@ -142,7 +142,7 @@ open class URLSessionConfiguration : NSObject, NSCopying {
142
142
open var allowsCellularAccess : Bool
143
143
144
144
/* 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
146
146
147
147
/* The identifier of the shared data container into which files in background sessions should be downloaded.
148
148
* App extensions wishing to use background sessions *must* set this property to a valid container identifier, or
0 commit comments