Rename Effect<Output, _> to Effect<Action, _> (#1362)

* Rename Effect<Output, _> -> Effect<Action, _>

We'll keep the typealias for the `Publisher` conformance, but given the
changes made to TCA for concurrency, `Effect` should typically only be
used these days in reducers to feed actions back into the store, and not
more generally as publishers of any output.

* wip
This commit is contained in:
Stephen Celis
2022-09-10 10:46:00 -04:00
committed by GitHub
parent 764de879ef
commit 26f9ed286d
10 changed files with 43 additions and 42 deletions

View File

@@ -171,18 +171,18 @@ extension Publishers.Create.Subscription: CustomStringConvertible {
extension Effect {
public struct Subscriber {
private let _send: (Output) -> Void
private let _send: (Action) -> Void
private let _complete: (Subscribers.Completion<Failure>) -> Void
init(
send: @escaping (Output) -> Void,
send: @escaping (Action) -> Void,
complete: @escaping (Subscribers.Completion<Failure>) -> Void
) {
self._send = send
self._complete = complete
}
public func send(_ value: Output) {
public func send(_ value: Action) {
self._send(value)
}