Skip to content

Commit

Permalink
fix merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrandonw committed Mar 8, 2023
1 parent 34d47cd commit 53cf633
Showing 1 changed file with 7 additions and 104 deletions.
111 changes: 7 additions & 104 deletions Sources/ComposableArchitecture/Effects/Publisher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -88,28 +88,10 @@ extension EffectPublisher {
///
/// - Parameter publisher: A publisher.
@available(
<<<<<<< HEAD
*, deprecated, message: "Iterate over 'Publisher.values' in an 'Effect.run', instead."
=======
iOS, deprecated: 9999.0,
message:
"Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'."
)
@available(
macOS, deprecated: 9999.0,
message:
"Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'."
)
@available(
tvOS, deprecated: 9999.0,
message:
"Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'."
)
@available(
watchOS, deprecated: 9999.0,
*,
deprecated,
message:
"Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'."
>>>>>>> navigation-beta
)
public init<P: Publisher>(_ publisher: P) where P.Output == Output, P.Failure == Failure {
self.operation = .publisher(publisher.eraseToAnyPublisher())
Expand Down Expand Up @@ -338,29 +320,9 @@ extension Publisher {
///
/// - Returns: An effect that wraps `self`.
@available(
<<<<<<< HEAD
*, deprecated,
message: "Iterate over 'Publisher.values' in an 'Effect.run', instead."
=======
iOS, deprecated: 9999.0,
message:
"Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'."
)
@available(
macOS, deprecated: 9999.0,
message:
"Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'."
)
@available(
tvOS, deprecated: 9999.0,
message:
"Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'."
)
@available(
watchOS, deprecated: 9999.0,
message:
"Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'."
>>>>>>> navigation-beta
)
public func eraseToEffect() -> EffectPublisher<Output, Failure> {
EffectPublisher(self)
Expand All @@ -382,28 +344,9 @@ extension Publisher {
/// - transform: A mapping function that converts `Output` to another type.
/// - Returns: An effect that wraps `self` after mapping `Output` values.
@available(
<<<<<<< HEAD
*, deprecated, message: "Iterate over 'Publisher.values' in an 'Effect.run', instead."
=======
iOS, deprecated: 9999.0,
message:
"Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'."
)
@available(
macOS, deprecated: 9999.0,
message:
"Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'."
)
@available(
tvOS, deprecated: 9999.0,
message:
"Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'."
)
@available(
watchOS, deprecated: 9999.0,
*, deprecated,
message:
"Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'."
>>>>>>> navigation-beta
)
public func eraseToEffect<T>(
_ transform: @escaping (Output) -> T
Expand Down Expand Up @@ -435,32 +378,11 @@ extension Publisher {
///
/// - Returns: An effect that wraps `self`.
@available(
<<<<<<< HEAD
*, deprecated, message: "Iterate over 'Publisher.values' in an 'Effect.run', instead."
)
public func catchToEffect() -> Effect<Result<Output, Failure>> {
=======
iOS, deprecated: 9999.0,
message:
"Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'."
)
@available(
macOS, deprecated: 9999.0,
message:
"Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'."
)
@available(
tvOS, deprecated: 9999.0,
message:
"Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'."
)
@available(
watchOS, deprecated: 9999.0,
*, deprecated,
message:
"Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'."
)
public func catchToEffect() -> EffectTask<Result<Output, Failure>> {
>>>>>>> navigation-beta
public func catchToEffect() -> Effect<Result<Output, Failure>> {
self.catchToEffect { $0 }
}

Expand All @@ -480,28 +402,9 @@ extension Publisher {
/// - transform: A mapping function that converts `Result<Output,Failure>` to another type.
/// - Returns: An effect that wraps `self`.
@available(
<<<<<<< HEAD
*, deprecated, message: "Iterate over 'Publisher.values' in an 'Effect.run', instead."
=======
iOS, deprecated: 9999.0,
message:
"Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'."
)
@available(
macOS, deprecated: 9999.0,
message:
"Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'."
)
@available(
tvOS, deprecated: 9999.0,
message:
"Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'."
)
@available(
watchOS, deprecated: 9999.0,
*, deprecated,
message:
"Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'."
>>>>>>> navigation-beta
)
public func catchToEffect<T>(
_ transform: @escaping (Result<Output, Failure>) -> T
Expand Down Expand Up @@ -556,7 +459,7 @@ extension Publisher {

@usableFromInline
internal struct EffectPublisherWrapper<Action, Failure: Error>: Publisher {
@usableFromInline typealias Output = Action
@usableFromInline typealias Output = Action

let effect: EffectPublisher<Action, Failure>

Expand Down

0 comments on commit 53cf633

Please sign in to comment.