Skip to content

Commit 34bf289

Browse files
authored
Merge pull request #2362 from karthikkeyan/karthik/urlsessionconfiguration-background-SR-10960
[SR-10960] URLSessionConfiguration.background(withIdentifier) method implemented
2 parents c1d0971 + 9de78c0 commit 34bf289

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Foundation/URLSession/URLSessionConfiguration.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ open class URLSessionConfiguration : NSObject, NSCopying {
155155
return ephemeralConfiguration
156156
}
157157

158-
open class func background(withIdentifier identifier: String) -> URLSessionConfiguration { NSUnimplemented() }
158+
@available(*, unavailable, message: "Not available on non-Darwin platforms")
159+
open class func background(withIdentifier identifier: String) -> URLSessionConfiguration { NSUnsupported() }
159160

160161
/* identifier for the background session configuration */
161162
open var identifier: String?

0 commit comments

Comments
 (0)