mirror of
https://github.com/pointfreeco/swift-composable-architecture.git
synced 2025-12-24 12:14:25 +01:00
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:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user