Skip to content

Commit

Permalink
Re-added and deprecated map(to:_) for SharedSequenceConvertibleType
Browse files Browse the repository at this point in the history
  • Loading branch information
SamHFrancis committed Sep 16, 2018
1 parent 0106e72 commit 4cb00a0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/RxCocoa/mapTo+RxCocoa.swift
Expand Up @@ -18,4 +18,9 @@ extension SharedSequenceConvertibleType {
public func mapTo<R>(_ value: R) -> SharedSequence<SharingStrategy, R> {
return map { _ in value }
}

@available(*, deprecated, renamed: "mapTo(_:)")
public func map<R>(to value: R) -> SharedSequence<SharingStrategy, R> {
return map { _ in value }
}
}

0 comments on commit 4cb00a0

Please sign in to comment.