diff --git a/Sources/Observer.swift b/Sources/Observer.swift index 03b472c19..0e246cd3c 100644 --- a/Sources/Observer.swift +++ b/Sources/Observer.swift @@ -7,6 +7,7 @@ // /// A protocol for type-constrained extensions of `Observer`. +@available(*, deprecated, message: "The protocol will be removed in a future version of ReactiveSwift. Use Observer directly.") public protocol ObserverProtocol { associatedtype Value associatedtype Error: Swift.Error @@ -73,9 +74,7 @@ public final class Observer { } } } -} -extension Observer: ObserverProtocol { /// Puts a `value` event into `self`. /// /// - parameters: @@ -102,3 +101,5 @@ extension Observer: ObserverProtocol { action(.interrupted) } } + +extension Observer: ObserverProtocol {}