Skip to content

Commit

Permalink
Merge pull request #262 from ReactiveCocoa/deprecate-observer-prot
Browse files Browse the repository at this point in the history
Deprecate `ObserverProtocol`.
  • Loading branch information
andersio authored Feb 19, 2017
2 parents 232d119 + 5a0eb52 commit fc52769
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sources/Observer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -73,9 +74,7 @@ public final class Observer<Value, Error: Swift.Error> {
}
}
}
}

extension Observer: ObserverProtocol {
/// Puts a `value` event into `self`.
///
/// - parameters:
Expand All @@ -102,3 +101,5 @@ extension Observer: ObserverProtocol {
action(.interrupted)
}
}

extension Observer: ObserverProtocol {}

0 comments on commit fc52769

Please sign in to comment.