Skip to content

Commit

Permalink
Restore Lifetime.add(_:) as an unavailable method
Browse files Browse the repository at this point in the history
  • Loading branch information
ikesyo committed Nov 11, 2017
1 parent 927322d commit 0a378cb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Sources/Deprecations+Removals.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,10 @@ extension Signal {
public convenience init(_ generator: (Observer) -> Disposable?) { fatalError() }
}

extension Lifetime {
@discardableResult
@available(*, unavailable, message:"Use `observeEnded(_:)` with a method reference to `dispose()` instead.")
public func add(_ d: Disposable?) -> Disposable? { fatalError() }
}

// MARK: Deprecated types in ReactiveSwift 2.x.

0 comments on commit 0a378cb

Please sign in to comment.