Is there an alternative to ReactiveSwift Action in Swift Combine? If not, how could it be implemented?
I am not very familiar with Swift Combine yet and could't find it anywhere.
Is there an alternative to ReactiveSwift Action in Swift Combine? If not, how could it be implemented?
I am not very familiar with Swift Combine yet and could't find it anywhere.
I'm not familiar with ReactiveSwift, but it looks like an Action is just a custom publisher built from whatever pieces you want. So basically in Combine you would simply build the head of the pipeline in any way you like, and vend that as an AnyPublisher object. But if the question is how to serialize two publishers, so that the second cannot publish until the first has finished, you would use .append
or .flatMap
(the latter with maxPublishers:.max(1)
).