Skip to content

Commit c84a8e0

Browse files
p4checomluisbrown
authored andcommitted
Make Effect conform to SignalProducerConvertible
## Changes - To keep symmetry with upstream (where `Effect: Publisher`) and have a way to run effects standalone, conformance to `SignalProducerConvertible` was added to `Effect`.
1 parent 49184bf commit c84a8e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/ComposableArchitecture/Effects/SignalProducer.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import ReactiveSwift
44
@available(macOS, deprecated: 9999.0)
55
@available(tvOS, deprecated: 9999.0)
66
@available(watchOS, deprecated: 9999.0)
7-
extension Effect {
7+
extension Effect: SignalProducerConvertible {
88
@inlinable
9-
var producer: SignalProducer<Action, Failure> {
9+
public var producer: SignalProducer<Action, Failure> {
1010
switch self.operation {
1111
case .none:
1212
return .empty
@@ -260,7 +260,7 @@ extension Effect {
260260
}
261261
}
262262

263-
extension Effect where Failure == Error {
263+
extension Effect where Failure == Swift.Error {
264264
/// Initializes an effect that lazily executes some work in the real world and synchronously sends
265265
/// that data back into the store.
266266
///

0 commit comments

Comments
 (0)