Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mosamer authored and freak4pc committed Apr 24, 2019
1 parent ae1e4ca commit cb8a78a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Changelog

Current master
--------------
- Introdue `completions` property to `CompletableAction`
- Add `completions` property to `CompletableAction`

3.11.0
-------
Expand Down
6 changes: 3 additions & 3 deletions Sources/Action/Action+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ public extension Action where Input == Void {
}
}

extension CompletableAction {
public extension CompletableAction {
/// Emits everytime work factory completes.
public var completions: Observable<Void> {
var completions: Observable<Void> {
return executionObservables
.flatMap { execution in
execution.flatMap {_ in Observable.empty() }
execution.flatMap { _ in Observable.empty() }
.concat(Observable.just(()))
}
}
Expand Down

0 comments on commit cb8a78a

Please sign in to comment.