Skip to content
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

Chaining has extremely complex return value #3

Open
teradyl opened this issue May 27, 2021 · 0 comments
Open

Chaining has extremely complex return value #3

teradyl opened this issue May 27, 2021 · 0 comments

Comments

@teradyl
Copy link

teradyl commented May 27, 2021

Although this chaining example works, there's good reason to call sink OUTSIDE the function where we're chaining network calls. However, this requires the return value to be a complicated value that gets more complicated every time we had a chain to it. For example: Publishers.FlatMap<AnyPublisher<Void, Error>, AnyPublisher<API.MyApiResponse, Error>>

Do you know how this can be made simpler? Would love to see an example doing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant