Closed niil-ohlin closed 4 years ago
I tried running our app with this change and only had to change one line:
- bag += signal.map(Flow.Result.success).onValue(completion)
+ bag += signal.map { Flow.Result.success($0) }.onValue(completion)
because the type checker could not resolve the type. I think that this warrants a major release.
What has been done
Result
enum.Result
as a typealias toSwift.Result
constrained onError
Result.getValue()
in favor of the providedResult.get()
.Result.init(_:)
since it is a duplication ofResult.init(catching:)
. (This will have a minimal API change because most of the time trailing closure syntax will have been used, but it's still breaking nonetheless.)map
andflatMap
since it is a pure reimplementation of the standard library functions.