-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.just, .empty and .fail on AnyPublisher #155
Comments
This could be really useful! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: