Skip to content

Commit

Permalink
Add unwrap deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
srdanrasic committed May 2, 2019
1 parent eb6e7d1 commit 520c433
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Sources/Deprecations.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,11 @@ extension SignalProtocol where Element: Equatable {
return distinctUntilChanged()
}
}

extension SignalProtocol where Element: Sequence {

@available(*, deprecated, renamed: "flattenElements")
public func unwrap() -> Signal<Element.Iterator.Element, Error> {
return flattenElements()
}
}

0 comments on commit 520c433

Please sign in to comment.