Skip to content

Commit

Permalink
Deprecate ObserverProtocol.
Browse files Browse the repository at this point in the history
  • Loading branch information
andersio committed Feb 15, 2017
1 parent 682067b commit 2979324
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 2979324

Please sign in to comment.