Skip to content

Commit

Permalink
fix never, fix flatMap
Browse files Browse the repository at this point in the history
  • Loading branch information
omochi committed Nov 22, 2017
1 parent ba0b00f commit c08f4f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Sources/ReactiveEmitter/Never.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class EventSourceNever<T> : EventSourceProtocol {
}

extension EventSource {
public static func never<T>() -> EventSource<T> {
return EventSourceNever<T>.init().asEventSource()
public static func never() -> EventSource<Event> {
return EventSourceNever<Event>.init().asEventSource()
}
}
2 changes: 1 addition & 1 deletion Sources/ReactiveEmitter/Operator/FlatMapLatest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class EventSourceFlatMapLatest<TSource: EventSourceProtocol, USource: Eve
}

extension EventSourceProtocol {
public func flatMap<USource: EventSourceProtocol>(_ flatMap: @escaping (Event) -> USource) -> EventSource<USource.Event> {
public func flatMapLatest<USource: EventSourceProtocol>(_ flatMap: @escaping (Event) -> USource) -> EventSource<USource.Event> {
return EventSourceFlatMapLatest(source: self, flatMap: flatMap).asEventSource()
}
}

0 comments on commit c08f4f0

Please sign in to comment.