Skip to content

Commit 9f25484

Browse files
committed
Add the unavailable method
1 parent 0fb7a16 commit 9f25484

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/Deprecations+Removals.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,11 @@ extension URLSession {
358358
public func rac_data(with request: URLRequest) -> SignalProducer<(Data, URLResponse), NSError> { fatalError() }
359359
}
360360

361+
extension Reactive where Base: URLSession {
362+
@available(*, unavailable, message:"Use the overload which returns `SignalProducer<(Data, URLResponse), AnyError>` instead, and cast `AnyError.error` to `NSError` as you need")
363+
public func data(with request: URLRequest) -> SignalProducer<(Data, URLResponse), NSError> { fatalError() }
364+
}
365+
361366
// Free functions
362367

363368
@available(*, unavailable, message:"timer(interval:on:) now uses DispatchTimeInterval")

0 commit comments

Comments
 (0)