CombineExt provides a collection of operators, publishers and utilities for Combine, that are not provided by Apple themselves, but are common in other Reactive Frameworks and standards.
I was wondering if there was a reason to not include in this (awesome) library some utility methods to simplify usage of Just, Fail and Empty, which requires an eraseToAnyPublisher() in so many scenarios.
I was wondering if there was a reason to not include in this (awesome) library some utility methods to simplify usage of Just, Fail and Empty, which requires an
eraseToAnyPublisher()
in so many scenarios.I was thinking about something like this
this could allow something like
This should also be super-useful in complex flatMaps with AnyPublishers as return values and some guard/let that always returns a Just/Fail
Is it something that could be useful or it's pointless? Am I missing something? Is it already there and I can't see it? :D
Cheers and thanks (as usual) for the awesome work.